删除冗余的代码

This commit is contained in:
eatmoreapple 2022-12-09 22:08:30 +08:00
parent c9e4e842d9
commit 7728a1517d
2 changed files with 0 additions and 10 deletions

View File

@ -109,8 +109,6 @@ const (
// errors
var (
ErrNoSuchUserFoundError = errors.New("no such user found")
ErrMissLocationHeader = errors.New("301 response missing Location header")
ErrLoginForbiddenError = errors.New("login forbidden")
ErrLoginTimeout = errors.New("login timeout")
)

View File

@ -47,14 +47,6 @@ func getWebWxDataTicket(cookies []*http.Cookie) string {
return ""
}
func getTotalDuration(delay ...time.Duration) time.Duration {
var total time.Duration
for _, d := range delay {
total += d
}
return total
}
// GetFileContentType 获取文件上传的类型
func GetFileContentType(file multipart.File) (string, error) {
data := make([]byte, 512)