Style: format code by gofumpt (#761)

This commit is contained in:
yuhan6665 2021-10-19 12:57:14 -04:00 committed by GitHub
parent d77be80b40
commit e286cdcaa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 293 additions and 291 deletions

View file

@ -338,7 +338,7 @@ func parseDomainRule(domain string) ([]*router.Domain, error) {
}
return domains, nil
}
var isExtDatFile = 0
isExtDatFile := 0
{
const prefix = "ext:"
if strings.HasPrefix(domain, prefix) {
@ -417,7 +417,7 @@ func toCidrList(ips StringList) ([]*router.GeoIP, error) {
})
continue
}
var isExtDatFile = 0
isExtDatFile := 0
{
const prefix = "ext:"
if strings.HasPrefix(ip, prefix) {