Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit 51eca9e

Browse files
ethantkoenigappleboy
authored andcommitted
Check unchecked error (#69)
1 parent 94d75c2 commit 51eca9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tree_entry.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ func getNextCommitInfos(state *getCommitInfoState) error {
264264
return fmt.Errorf("Unquote: %v", err)
265265
}
266266
}
267-
state.update(entryPath)
267+
if err = state.update(entryPath); err != nil {
268+
return err
269+
}
268270
}
269271
i++ // skip blank line
270272
if len(state.entries) == len(state.commits) {

0 commit comments

Comments
 (0)