aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2018-02-01 22:21:44 +0100
committerferhat elmas <elmas.ferhat@gmail.com>2018-02-01 22:21:44 +0100
commit0d1e52eaa4f464abb84c101b062705b226a8976f (patch)
tree46ed33aaf857ea88c08cbe430427007ed8730b7f /storage
parent5d5b95168c9ed9f3210ddca5ce220fe3dbbebc0c (diff)
downloadgo-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.go2
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
}
}