v12.1.0
This commit is contained in:
1 parent
cf584c8123
commit
0903c452d9
3 files changed
+9
-1
No files matched your search
@@ -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