fix: nil pointer in urltest (#603)

This commit is contained in:
wzdnzd
2023-06-05 12:40:46 +08:00
committed by Larvan2
parent 4d7350923c
commit 1f592c43de
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ func NewIntRangesFromList[T constraints.Integer](list []string) (IntRanges[T], e
}
func (ranges IntRanges[T]) Check(status T) bool {
if ranges == nil || len(ranges) == 0 {
if len(ranges) == 0 {
return true
}