Skip to content

Commit

Permalink
follow empiredan advice
Browse files Browse the repository at this point in the history
  • Loading branch information
lupengfan1 committed Dec 31, 2024
1 parent 52ee381 commit 6af31cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions admin-cli/executor/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func CloseClient(client *Client) error {
fmt.Printf("Error: failed to close nodes session [%s]\n", err)
errorStrings = append(errorStrings, err.Error())
}

return fmt.Errorf("%s", strings.Join(errorStrings, "\n"))
if len(errorStrings) != 0 {
return fmt.Errorf("%s", strings.Join(errorStrings, "\n"))
}
return nil
}

0 comments on commit 6af31cc

Please sign in to comment.