This commit is contained in:
Andrea Spacca
2021-12-26 16:44:40 +01:00
parent aa59fba247
commit 56c279bf82
2 changed files with 2 additions and 2 deletions

View File

@ -393,7 +393,7 @@ func New() *Cmd {
options = append(options, server.ClamavHost(v))
}
if v := c.Bool("perform-clamav-prescan"); v != false {
if v := c.Bool("perform-clamav-prescan"); !v {
if c.String("clamav-host") == "" {
panic("clamav-host not set")
}

View File

@ -72,7 +72,7 @@ func (s *Server) scanHandler(w http.ResponseWriter, r *http.Request) {
return
}
w.Write([]byte(fmt.Sprintf("%v\n", status)))
_, _ = w.Write([]byte(fmt.Sprintf("%v\n", status)))
}
func (s *Server) performScan(path string) (string, error) {