Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
simplify comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-solana committed Apr 27, 2024
1 parent 8b300d6 commit 1c20bc3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ func (p PingResultError) Subsitute(old string, new string) string {
}

func (p PingResultError) HasError() bool {
if string(p) == string(EmptyPingResultError) {
return false
}
return true
return p != EmptyPingResultError
}

func ResponseErrIdentifierInit() []ErrRespIdentifier {
Expand Down

0 comments on commit 1c20bc3

Please sign in to comment.