Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 98916b8

Browse files
authored
Merge pull request #740 from ferhatelmas/shallow-storage-err
storage/filesystem/shallow: fix error checking
2 parents 5d5b951 + 0d1e52e commit 98916b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/filesystem/shallow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (s *ShallowStorage) SetShallow(commits []plumbing.Hash) error {
2626

2727
defer ioutil.CheckClose(f, &err)
2828
for _, h := range commits {
29-
if _, err := fmt.Fprintf(f, "%s\n", h); err != err {
29+
if _, err := fmt.Fprintf(f, "%s\n", h); err != nil {
3030
return err
3131
}
3232
}

0 commit comments

Comments
 (0)