From b71735d0d773585a6451dd2c3a9705234c22edb4 Mon Sep 17 00:00:00 2001 From: Sam Coe Date: Mon, 19 Jul 2021 10:48:09 -0700 Subject: [PATCH] Address PR comments --- pkg/cmd/extensions/extension.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/extensions/extension.go b/pkg/cmd/extensions/extension.go index d73bf4bc0..8fa07e7cf 100644 --- a/pkg/cmd/extensions/extension.go +++ b/pkg/cmd/extensions/extension.go @@ -1,6 +1,7 @@ package extensions import ( + "errors" "os" "path/filepath" "strings" @@ -34,7 +35,7 @@ func (e *Extension) IsLocal() bool { return true } // Check if extension does not have a git directory - if _, err = os.Stat(filepath.Join(dir, ".git")); err != nil { + if _, err = os.Stat(filepath.Join(dir, ".git")); errors.Is(err, os.ErrNotExist) { return true } return false