diff --git a/app/upgrade_tracker.go b/app/upgrade_tracker.go index 29f27a7a6e..1dec261ea5 100644 --- a/app/upgrade_tracker.go +++ b/app/upgrade_tracker.go @@ -34,8 +34,7 @@ func (t upgradeTracker) getDevelopUpgrades() ([]upgradeHandlerFn, *storetypes.St stateFilePath := path.Join(t.stateFileDir, "developupgradetracker") currentIndex := int64(0) - // #nosec G304 stateFilePath is not user controllable - if stateFileContents, err := os.ReadFile(stateFilePath); err == nil { + if stateFileContents, err := os.ReadFile(stateFilePath); err == nil { // #nosec G304 -- stateFilePath is not user controllable currentIndex, err = strconv.ParseInt(string(stateFileContents), 10, 64) if err != nil { return nil, nil, fmt.Errorf("unable to decode upgrade tracker: %w", err)