[CodeQL] Fix wrong type conversion (#101353)

* [CodeQL] Fix wrong type conversion

* Use AtyoI
pull/101419/head
Leonor Oliveira 5 months ago committed by GitHub
parent 5e61ec1258
commit f8b63c364b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      pkg/services/dashboardversion/dashverimpl/dashver.go

@ -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
}

Loading…
Cancel
Save