Skip to content

Commit d277785

Browse files
committed
refactor config isempty
1 parent 0132bca commit d277785

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

internal/config/config.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ func (c *Config) Validate() error {
6161

6262
// IsEmpty checks if config has no params set
6363
func (c *Config) IsEmpty() bool {
64-
if len(c.Client) != 0 {
65-
return false
66-
}
67-
if len(c.Secret) != 0 {
68-
return false
69-
}
70-
return true
64+
return len(c.Client) == 0 && len(c.Secret) == 0
7165
}
7266

7367
// Retrieve looks for configuration parameters in

0 commit comments

Comments
 (0)