mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-24 10:58:18 +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) {
|
func getMinVer(v string) (uint64, error) {
|
||||||
if IsDebugging() {
|
first := strings.IndexByte(v, '.')
|
||||||
first := strings.IndexByte(v, '.')
|
last := strings.LastIndexByte(v, '.')
|
||||||
last := strings.LastIndexByte(v, '.')
|
if first == last {
|
||||||
if first == last {
|
return strconv.ParseUint(v[first+1:], 10, 64)
|
||||||
return strconv.ParseUint(v[first+1:], 10, 64)
|
|
||||||
}
|
|
||||||
return strconv.ParseUint(v[first+1:last], 10, 64)
|
|
||||||
}
|
}
|
||||||
|
return strconv.ParseUint(v[first+1:last], 10, 64)
|
||||||
}
|
}
|
||||||
|
|
||||||
func debugPrintWARNINGDefault() {
|
func debugPrintWARNINGDefault() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user