spring cleanup (#5991)

* Make format

* Fix golangci-lint warnings

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
Alessio Treglia
2020-04-14 19:13:15 +00:00
committed by GitHub
co-authored by Alexander Bezobchuk
parent 58a6c4c007
commit aeee097b2f
18 changed files with 78 additions and 91 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ import (
func Test_runMigrateCmd(t *testing.T) {
cmd := AddKeyCommand()
assert.NotNil(t, cmd)
mockIn, _, _ := tests.ApplyMockIO(cmd)
kbHome, kbCleanUp := tests.NewTestCaseDir(t)
copy.Copy("testdata", kbHome)
@@ -31,7 +30,7 @@ func Test_runMigrateCmd(t *testing.T) {
viper.Set(flags.FlagDryRun, true)
cmd = MigrateCommand()
mockIn, _, _ = tests.ApplyMockIO(cmd)
mockIn, _, _ := tests.ApplyMockIO(cmd)
mockIn.Reset("test1234\ntest1234\n")
assert.NoError(t, runMigrateCmd(cmd, []string{}))
}