Skip to content

Commit f52690d

Browse files
committed
Run Clippy
1 parent 2919aaf commit f52690d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/docker_client.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ impl DockerClient {
1616
Self::set_build_arg(&mut command, "RUBY_VERSION", ruby_version);
1717
Self::set_build_arg(&mut command, "RAILS_VERSION", rails_version);
1818

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()));
19+
if let Some(id) = user_id {
20+
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+
}
2125

2226
command.arg("-t");
2327

0 commit comments

Comments
 (0)