diff options
author | Anthony HAMON <hamon.anth@gmail.com> | 2018-09-02 22:46:37 +0200 |
---|---|---|
committer | Anthony HAMON <hamon.anth@gmail.com> | 2018-09-04 06:21:58 +0200 |
commit | 8c675780639ffb1f214c7fcfaa34c09862ccd092 (patch) | |
tree | 2c333ac4827496a9d5109a867863186b4eb892e6 /pkg | |
parent | 06846ef3ae9aed88ff6249cc2fd5bdbe0a55bdc3 (diff) |
replace fmt with errors
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/commands/git.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go index 6ba5f8a84..df78a2e3a 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -17,7 +17,7 @@ import ( // ErrGitRepositoryInvalid is emitted when we run a git command in a folder // to check if we have a valid git repository and we get an error instead -var ErrGitRepositoryInvalid = fmt.Errorf("can't find a valid git repository in current directory") +var ErrGitRepositoryInvalid = errors.New("can't find a valid git repository in current directory") func verifyInGitRepo(runCmdWithOutput func(string) (string, error)) error { if _, err := runCmdWithOutput("git status"); err != nil { |