diff options
-rw-r--r-- | storage/filesystem/shallow.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/filesystem/shallow.go b/storage/filesystem/shallow.go index 394e6ed..4b2e2dc 100644 --- a/storage/filesystem/shallow.go +++ b/storage/filesystem/shallow.go @@ -26,7 +26,7 @@ func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error { defer ioutil.CheckClose(f, &err) for _, h := range commits { - if _, err := fmt.Fprintf(f, "%s\n", h); err != err { + if _, err := fmt.Fprintf(f, "%s\n", h); err != nil { return err } } |