Skip to content

Commit

Permalink
godoc fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <[email protected]>
  • Loading branch information
ahmetb committed Apr 23, 2020
1 parent 3d40bd1 commit a239f78
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/krew/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func ensureDefaultIndexIfNoneExist() error {
"failed to add default plugin index in absence of no indexes")
}

// ensureDefaultIndexIfNoneExist iterates over all indexes and updates them
// ensureIndexesUpdated iterates over all indexes and updates them
// and prints new plugins and upgrades available for installed plugins.
func ensureIndexesUpdated() error {
preUpdateIndex, _ := indexscanner.LoadPluginListFromFS(paths.IndexPluginsPath(constants.DefaultIndexName))
Expand Down Expand Up @@ -175,9 +175,7 @@ func ensureIndexesUpdated() error {
installedPlugins[receipt.Name] = receipt.Spec.Version
}

// TODO(chriskim06) consider commenting this out when refactoring for custom indexes
showUpdatedPlugins(os.Stderr, preUpdateIndex, posUpdateIndex, installedPlugins)

return errors.Wrapf(returnErr, "failed to update the following indexes: %s\n", strings.Join(failed, ", "))
}

Expand Down

0 comments on commit a239f78

Please sign in to comment.