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
2
debug.go
2
debug.go
@ -53,7 +53,6 @@ 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 {
|
||||
@ -61,7 +60,6 @@ func getMinVer(v string) (uint64, error) {
|
||||
}
|
||||
return strconv.ParseUint(v[first+1:last], 10, 64)
|
||||
}
|
||||
}
|
||||
|
||||
func debugPrintWARNINGDefault() {
|
||||
if v, e := getMinVer(runtime.Version()); e == nil && v <= 6 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user