We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2919aaf commit f52690dCopy full SHA for f52690d
src/docker_client.rs
@@ -16,8 +16,12 @@ impl DockerClient {
16
Self::set_build_arg(&mut command, "RUBY_VERSION", ruby_version);
17
Self::set_build_arg(&mut command, "RAILS_VERSION", rails_version);
18
19
- user_id.map(|id| Self::set_build_arg(&mut command, "USER_ID", &id.to_string()));
20
- group_id.map(|id| Self::set_build_arg(&mut command, "GROUP_ID", &id.to_string()));
+ if let Some(id) = user_id {
+ Self::set_build_arg(&mut command, "USER_ID", &id.to_string())
21
+ }
22
+ if let Some(id) = group_id {
23
+ Self::set_build_arg(&mut command, "GROUP_ID", &id.to_string())
24
25
26
command.arg("-t");
27
0 commit comments