From ea0185548dc95283ac26015d5e3915cbb41ab57e Mon Sep 17 00:00:00 2001 From: Chris Kim Date: Fri, 5 Jun 2020 09:17:35 -0700 Subject: [PATCH] Fix linting error --- integration_test/migration_test.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/integration_test/migration_test.go b/integration_test/migration_test.go index e6fde22e..86b2b667 100644 --- a/integration_test/migration_test.go +++ b/integration_test/migration_test.go @@ -77,14 +77,8 @@ func TestKrewUnsupportedVersion(t *testing.T) { func isIndexMigrated(it *ITest) bool { indexPath := it.TempDir().Path("index/default") - if _, err := os.Stat(indexPath); err == nil { - return true - } else if os.IsNotExist(err) { - return false - } else { - it.t.Fatal(err) - return false - } + _, err := os.Stat(indexPath) + return err == nil } func prepareOldIndexLayout(it *ITest) {