From 54bf54df5c65d0f89b0af6f06bcac7da7f03a0b2 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Wed, 26 Sep 2018 12:43:53 +0800 Subject: [PATCH] remove invalid statement --- debug.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/debug.go b/debug.go index 346cbae2..2596d969 100644 --- a/debug.go +++ b/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() {