[CodeQL] Fix wrong type conversion (#101353)

* [CodeQL] Fix wrong type conversion

* Use AtyoI
This commit is contained in:
Leonor Oliveira
2025-02-27 15:18:02 +01:00
committed by GitHub
parent 5e61ec1258
commit f8b63c364b
@@ -334,10 +334,9 @@ func getRestoreVersion(msg string) (int, error) {
return 0, nil
}
ver, err := strconv.ParseInt(parts[1], 10, 64)
ver, err := strconv.Atoi(parts[1])
if err != nil {
return 0, err
}
return int(ver), nil
return ver, nil
}