Chore: add some linters and clean up the code

This commit is contained in:
Dreamacro
2023-04-04 14:53:59 +08:00
parent a7252a1576
commit 5045ca4574
8 changed files with 18 additions and 12 deletions

View File

@ -62,7 +62,7 @@ func findProcessName(network string, ip net.IP, srcPort int) (string, error) {
err := initWin32API()
if err != nil {
log.Errorln("Initialize PROCESS-NAME failed: %s", err.Error())
log.Warnln("All PROCESS-NAMES rules will be skiped")
log.Warnln("All PROCESS-NAMES rules will be skipped")
return
}
})