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

Commit 0d1e52e

Browse files
committed
storage/filesystem/shallow: fix error checking
Signed-off-by: ferhat elmas <[email protected]>
1 parent 5d5b951 commit 0d1e52e

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)