Skip to content

Commit 69384a9

Browse files
kapurm17ndeloof
authored andcommitted
Removes redundant condition from toAPIBuildOptions in build.go
Signed-off-by: Mayank Kapur <kapurm17@gmail.com>
1 parent 1601ead commit 69384a9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

cmd/compose/build.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ type buildOptions struct {
4848

4949
func (opts buildOptions) toAPIBuildOptions(services []string) (api.BuildOptions, error) {
5050
var SSHKeys []types.SSHKey
51-
var err error
5251
if opts.ssh != "" {
5352
id, path, found := strings.Cut(opts.ssh, "=")
5453
if !found && id != "default" {
@@ -58,9 +57,6 @@ func (opts buildOptions) toAPIBuildOptions(services []string) (api.BuildOptions,
5857
ID: id,
5958
Path: path,
6059
})
61-
if err != nil {
62-
return api.BuildOptions{}, err
63-
}
6460
}
6561
builderName := opts.builder
6662
if builderName == "" {

0 commit comments

Comments
 (0)