remove : remove no used code

This commit is contained in:
zhangwenjian committed 2020-07-27 22:36:00 +08:00
1 parent 7e12e55b56
commit 61d3e7c080
2 files changed
-42

No files matched your search

-2
View File
@@ -18,7 +18,6 @@ func StrToInt(err error, index string) int {
func CompareHashAndPassword(e string, p string) (bool, error) {
err := bcrypt.CompareHashAndPassword([]byte(e), []byte(p))
if err != nil {
Logger.Print(err.Error())
return false, err
}
return true, nil
@@ -50,7 +49,6 @@ func HasError(err error, msg string, code ...int) {
if msg == "" {
msg = err.Error()
}
Logger.Println(err)
panic("CustomError#" + strconv.Itoa(statusCode) + "#" + msg)
}
}