Skip to content

Commit c3f211c

Browse files
committed
Fix
1 parent ae834c6 commit c3f211c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/boxcli/global.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package boxcli
55

66
import (
77
"fmt"
8-
"os"
98

109
"github.com/pkg/errors"
1110
"github.com/spf13/cobra"
@@ -65,7 +64,7 @@ func ensureGlobalConfig() (string, error) {
6564
return "", err
6665
}
6766
err = devbox.EnsureConfig(globalConfigPath)
68-
if err != nil && !errors.Is(err, os.ErrExist) {
67+
if err != nil {
6968
return "", err
7069
}
7170
return globalConfigPath, nil

0 commit comments

Comments
 (0)