Fix steam & lint (#630)

* fix

* make lint happy
This commit is contained in:
DreamZero
2023-03-20 11:57:46 +08:00
committed by GitHub
parent 6474b36ccd
commit e9eb4c5602
7 changed files with 35 additions and 39 deletions

13
main.go
View File

@@ -234,13 +234,12 @@ func init() {
fmt.Println("Usage:")
flag.PrintDefaults()
os.Exit(0)
} else {
if *d && !*w {
logrus.SetLevel(logrus.DebugLevel)
}
if *w {
logrus.SetLevel(logrus.WarnLevel)
}
}
if *d && !*w {
logrus.SetLevel(logrus.DebugLevel)
}
if *w {
logrus.SetLevel(logrus.WarnLevel)
}
for _, s := range flag.Args() {