fix: fix golint issue

This commit is contained in:
dudaodong committed 2024-01-01 17:43:11 +08:00
1 parent 4afc838937
commit b2c3fa0ab8
2 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -610,7 +610,7 @@ func Sha(filepath string, shaType ...int) (string, error) {
} else if shaType[0] == 512 {
h = sha512.New()
} else {
return "", errors.New("param `shaType` should be 1, 256 or 512.")
return "", errors.New("param `shaType` should be 1, 256 or 512")
}
}