v12.1.0
This commit is contained in:
6
check.go
6
check.go
@@ -28,7 +28,11 @@ func (de DecortClient) Check() (*CheckInfo, error) {
|
||||
|
||||
err = json.Unmarshal([]byte(strings.Replace(strings.Trim(string(res), `"`), "\\", "", -1)), &info)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
if _, exists := constants.VersionMap[string(res)]; exists {
|
||||
info.Version = string(res)
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
if v, ok := constants.VersionMap[info.Version]; ok {
|
||||
|
||||
Reference in New Issue
Block a user