Make megacheck happy
This commit is contained in:
parent
85ff1995fd
commit
ce1c5873ac
|
@ -9,7 +9,6 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/cookiejar"
|
"net/http/cookiejar"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
@ -831,14 +830,6 @@ func (m *MMClient) sendWSRequest(action string, data map[string]interface{}) err
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *MMClient) mmVersion() float64 {
|
|
||||||
v, _ := strconv.ParseFloat(string(m.ServerVersion[0:2])+"0"+string(m.ServerVersion[2]), 64)
|
|
||||||
if string(m.ServerVersion[4]) == "." {
|
|
||||||
v, _ = strconv.ParseFloat(m.ServerVersion[0:4], 64)
|
|
||||||
}
|
|
||||||
return v
|
|
||||||
}
|
|
||||||
|
|
||||||
func supportedVersion(version string) bool {
|
func supportedVersion(version string) bool {
|
||||||
if strings.HasPrefix(version, "3.8.0") ||
|
if strings.HasPrefix(version, "3.8.0") ||
|
||||||
strings.HasPrefix(version, "3.9.0") ||
|
strings.HasPrefix(version, "3.9.0") ||
|
||||||
|
|
Loading…
Reference in New Issue