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:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user