aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-02-02 10:08:16 +0100
committerGitHub <noreply@github.com>2018-02-02 10:08:16 +0100
commit98916b85c6fe08f2be5a235db43957d493ba37b9 (patch)
tree46ed33aaf857ea88c08cbe430427007ed8730b7f
parent5d5b95168c9ed9f3210ddca5ce220fe3dbbebc0c (diff)
parent0d1e52eaa4f464abb84c101b062705b226a8976f (diff)
downloadgo-git-98916b85c6fe08f2be5a235db43957d493ba37b9.tar.gz
Merge pull request #740 from ferhatelmas/shallow-storage-err
storage/filesystem/shallow: fix error checking
-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
}
}