Address PR comments
This commit is contained in:
parent
bc7eaf8004
commit
b71735d0d7
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue