1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-10 07:42:27 +08:00

fix: fix golint issue

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

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")
}
}