Skip to content

Commit

Permalink
fix make lint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyelei committed Oct 25, 2023
1 parent 8a62978 commit 6686bbe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cli/util/breakingchange/upgrader.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type upgradeHandler interface {

// registerUpgradeHandler registers the breakingChange handlers to upgradeHandlerMapper.
// the version format should contain "MAJOR.MINOR", such as "0.6".
func registerUpgradeHandler(fromVersions []string, toVersion string, upgradeHandler upgradeHandler) error {
func registerUpgradeHandler(fromVersions []string, toVersion string, upgradeHandler upgradeHandler) {
formatErr := func(version string) error {
return fmt.Errorf("the version %s is incorrect format, at least contains MAJOR and MINOR, such as MAJOR.MINOR", version)
}
Expand All @@ -76,7 +76,6 @@ func registerUpgradeHandler(fromVersions []string, toVersion string, upgradeHand
formVersions: majorMinorFromVersions,
handler: upgradeHandler,
}
return nil
}

// getUpgradeHandler gets the upgrade handler according to fromVersion and toVersion from upgradeHandlerMapper.
Expand Down

0 comments on commit 6686bbe

Please sign in to comment.