From 23d364431e0374e0dd2f6c559eb393d114245238 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Wed, 24 Aug 2022 22:11:28 +0700 Subject: [PATCH] refactor: better read func --- internal/cli/action_run.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/cli/action_run.go b/internal/cli/action_run.go index 2015c6a..310b4f8 100644 --- a/internal/cli/action_run.go +++ b/internal/cli/action_run.go @@ -65,7 +65,12 @@ func (a *action) Run(c *cli.Context) error { successUpgradedModules := make([]Module, 0, defaultCountModule) modulePaths := strings.Split(depsStr, "\n") for _, modulePath := range modulePaths { - successUpgradedModules, err = a.runUpgradeModule(c, mapImportedModules, successUpgradedModules, modulePath) + successUpgradedModules, err = a.runUpgradeModule( + c, + mapImportedModules, + successUpgradedModules, + modulePath, + ) if err != nil { color.PrintAppError(name, err.Error()) }