minor optm

This commit is contained in:
vcptr
2019-11-22 17:57:16 +08:00
parent fa30713e76
commit 3b9514ec9f
+1 -4
View File
@@ -53,10 +53,7 @@ func (c *MultiGeoIPMatcher) Match(ip net.IP) bool {
// HasMatcher check has matcher
func (c *MultiGeoIPMatcher) HasMatcher() bool {
if len(c.matchers) > 0 {
return true
}
return false
return len(c.matchers) > 0
}
func generateRandomTag() string {