mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-22 09:34:33 +08:00
remove invalid statement
This commit is contained in:
parent
b0b5fe4f81
commit
54bf54df5c
12
debug.go
12
debug.go
@ -53,14 +53,12 @@ func debugPrint(format string, values ...interface{}) {
|
||||
}
|
||||
|
||||
func getMinVer(v string) (uint64, error) {
|
||||
if IsDebugging() {
|
||||
first := strings.IndexByte(v, '.')
|
||||
last := strings.LastIndexByte(v, '.')
|
||||
if first == last {
|
||||
return strconv.ParseUint(v[first+1:], 10, 64)
|
||||
}
|
||||
return strconv.ParseUint(v[first+1:last], 10, 64)
|
||||
first := strings.IndexByte(v, '.')
|
||||
last := strings.LastIndexByte(v, '.')
|
||||
if first == last {
|
||||
return strconv.ParseUint(v[first+1:], 10, 64)
|
||||
}
|
||||
return strconv.ParseUint(v[first+1:last], 10, 64)
|
||||
}
|
||||
|
||||
func debugPrintWARNINGDefault() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user