Skip to content

Commit

Permalink
Implements suggested cleanup to remove unnecessary conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmccormack committed Nov 27, 2024
1 parent e7757cd commit f5a3526
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builder/docker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ func (c *Config) Prepare(raws ...interface{}) ([]string, error) {
c.Pull = false
}

if c.Platform != "" {
c.BuildConfig.Platform = c.Platform
}
c.BuildConfig.Platform = c.Platform

} else {
// Default Pull if it wasn't set
Expand Down

0 comments on commit f5a3526

Please sign in to comment.