Commit Diff
--- lib/worktree.c +++ lib/worktree.c @@ -666,8 +666,6 @@ install_blob(struct got_worktree *worktree, struct got goto done; err = got_fileindex_entry_add(fileindex, entry); } - if (err) - goto done; done: if (fd != -1) close(fd);
--- lib/worktree.c +++ lib/worktree.c @@ -666,8 +666,6 @@ install_blob(struct got_worktree *worktree, struct got goto done; err = got_fileindex_entry_add(fileindex, entry); } - if (err) - goto done; done: if (fd != -1) close(fd);