Skip to content

Commit 1c3572c

Browse files
committed
Update isCLIConfigured() check
(cherry picked from commit 578cec6)
1 parent c363b27 commit 1c3572c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cli/cmd/lib_cli_config.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,8 @@ func readCLIConfig() (*CLIConfig, []error) {
134134
}
135135

136136
func isCLIConfigured() bool {
137-
if _, errs := readCLIConfig(); !errors.HasErrors(errs) {
138-
return true
139-
}
140-
return false
137+
_, errs := readCLIConfig()
138+
return !errors.HasErrors(errs)
141139
}
142140

143141
func getValidCLIConfig() *CLIConfig {

0 commit comments

Comments
 (0)