Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit ef0677b

Browse files
committed
updated if-else-if
1 parent 798b597 commit ef0677b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compose/internal/composeplugin/composeplugin.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ func NewPluginWrapper(binaryPath, configPath string) (libstack.Deployer, error)
5454
if err != nil {
5555
return nil, err
5656
}
57-
} else {
58-
if !utils.IsBinaryPresent(utils.ProgramPath(dockerPluginsPath, "docker-compose")) {
59-
return nil, MissingDockerComposePluginErr
60-
}
57+
} else if !utils.IsBinaryPresent(utils.ProgramPath(dockerPluginsPath, "docker-compose")) {
58+
return nil, MissingDockerComposePluginErr
6159
}
6260

6361
return &PluginWrapper{binaryPath: binaryPath, configPath: configPath}, nil

0 commit comments

Comments
 (0)