Skip to content

Commit

Permalink
Run Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Apr 11, 2024
1 parent 2919aaf commit f52690d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/docker_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ impl DockerClient {
Self::set_build_arg(&mut command, "RUBY_VERSION", ruby_version);
Self::set_build_arg(&mut command, "RAILS_VERSION", rails_version);

user_id.map(|id| Self::set_build_arg(&mut command, "USER_ID", &id.to_string()));
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())
}
if let Some(id) = group_id {
Self::set_build_arg(&mut command, "GROUP_ID", &id.to_string())
}

command.arg("-t");

Expand Down

0 comments on commit f52690d

Please sign in to comment.