Skip to content

Commit f7f0dc4

Browse files
committed
[Bugfix] Return the error only if it is not nil
1 parent 90e7841 commit f7f0dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dosa/scopemd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (c *ScopeList) Execute(args []string) error {
5050
defer shutdownMDClient(client)
5151

5252
var scopes []string
53-
if scopes, err = c.getScopes(client); err == nil {
53+
if scopes, err = c.getScopes(client); err != nil {
5454
return err
5555
}
5656
for _, sp := range scopes {

0 commit comments

Comments
 (0)