Catch nil on error
This commit is contained in:
@@ -10,5 +10,5 @@ func IsBytesLimitReached(err error) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func AreAllTokensExpired(err error) bool {
|
func AreAllTokensExpired(err error) bool {
|
||||||
return err.Error() == "all tokens are expired"
|
return err != nil && err.Error() == "all tokens are expired"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user