Browse Source

Removes redundant condition from toAPIBuildOptions in build.go

Signed-off-by: Mayank Kapur <[email protected]>
Mayank Kapur 1 year ago
parent
commit
69384a9a0f
1 changed files with 0 additions and 4 deletions
  1. 0 4
      cmd/compose/build.go

+ 0 - 4
cmd/compose/build.go

@@ -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" {
@@ -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 == "" {