Skip to content

Commit 55cded1

Browse files
htoyoda18glours
authored andcommitted
Avoid reassigning err variable
Signed-off-by: hiroto.toyoda <[email protected]>
1 parent 6c04392 commit 55cded1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/compose/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ func setEnvWithDotEnv(opts ProjectOptions) error {
688688
}
689689
for k, v := range envFromFile {
690690
if _, ok := os.LookupEnv(k); !ok && strings.HasPrefix(k, "COMPOSE_") {
691-
if err = os.Setenv(k, v); err != nil {
691+
if err := os.Setenv(k, v); err != nil {
692692
return err
693693
}
694694
}

0 commit comments

Comments
 (0)