Skip to content

Commit

Permalink
error string lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed Feb 8, 2024
1 parent 9d7675a commit db41778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/chainlib/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func truncateAndPadString(s string, maxLength int) string {
// return if response is valid or not - true
func ValidateNilResponse(responseString string) error {
if !slices.Contains(InvalidResponses, responseString) {
return fmt.Errorf("Response returned an empty value: %s", responseString)
return fmt.Errorf("response returned an empty value: %s", responseString)
}
return nil
}

0 comments on commit db41778

Please sign in to comment.