From a239f78dcde3a5df9bb86de7d35895246eb2e496 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Thu, 23 Apr 2020 09:47:00 -0700 Subject: [PATCH] godoc fix Signed-off-by: Ahmet Alp Balkan --- cmd/krew/cmd/update.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/krew/cmd/update.go b/cmd/krew/cmd/update.go index cb8a0cea..2de26f64 100644 --- a/cmd/krew/cmd/update.go +++ b/cmd/krew/cmd/update.go @@ -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)) @@ -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, ", ")) }