diff options
author | ferhat elmas <elmas.ferhat@gmail.com> | 2018-02-01 22:21:44 +0100 |
---|---|---|
committer | ferhat elmas <elmas.ferhat@gmail.com> | 2018-02-01 22:21:44 +0100 |
commit | 0d1e52eaa4f464abb84c101b062705b226a8976f (patch) | |
tree | 46ed33aaf857ea88c08cbe430427007ed8730b7f /storage | |
parent | 5d5b95168c9ed9f3210ddca5ce220fe3dbbebc0c (diff) | |
download | go-git-0d1e52eaa4f464abb84c101b062705b226a8976f.tar.gz |
storage/filesystem/shallow: fix error checking
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Diffstat (limited to 'storage')
-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 } } |