Skip to content

Commit

Permalink
Removes redundant condition from toAPIBuildOptions in build.go
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Kapur <[email protected]>
  • Loading branch information
kapurm17 authored and ndeloof committed Aug 5, 2024
1 parent 1601ead commit 69384a9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/compose/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type buildOptions struct {

func (opts buildOptions) toAPIBuildOptions(services []string) (api.BuildOptions, error) {
var SSHKeys []types.SSHKey
var err error
if opts.ssh != "" {
id, path, found := strings.Cut(opts.ssh, "=")
if !found && id != "default" {
Expand All @@ -58,9 +57,6 @@ func (opts buildOptions) toAPIBuildOptions(services []string) (api.BuildOptions,
ID: id,
Path: path,
})
if err != nil {
return api.BuildOptions{}, err
}
}
builderName := opts.builder
if builderName == "" {
Expand Down

0 comments on commit 69384a9

Please sign in to comment.