Skip to content

Commit 28f3f68

Browse files
committed
Follow standard error message format conventions
As mandated by golint.
1 parent 03f5f8d commit 28f3f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/clamav.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func RunAntiVirus(folder string) ([]byte, error) {
4343

4444
output := string(out)
4545
if strings.Index(output, "Infected files: 0") == -1 {
46-
return out, errors.New("Infected files found!")
46+
return out, errors.New("Infected files found")
4747
}
4848

4949
return out, nil

0 commit comments

Comments
 (0)