summaryrefslogtreecommitdiff
path: root/utils/other_utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/other_utils.go')
-rw-r--r--utils/other_utils.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/other_utils.go b/utils/other_utils.go
index 9940a0c..af0a74b 100644
--- a/utils/other_utils.go
+++ b/utils/other_utils.go
@@ -6,8 +6,5 @@ import (
func IsValidIP(ip string) bool {
res := net.ParseIP(ip)
- if res == nil {
- return false
- }
- return true
+ return res != nil
}