Commit 14bbd1f011c021e9782a09bc125cb57c0ad77846

Stefan Sperling 2019-01-13T16:59:16

remove redundant goto statement

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/worktree.c b/lib/worktree.c
index b0d9794..32d7557 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -666,8 +666,6 @@ install_blob(struct got_worktree *worktree, struct got_fileindex *fileindex,
 			goto done;
 		err = got_fileindex_entry_add(fileindex, entry);
 	}
-	if (err)
-		goto done;
 done:
 	if (fd != -1)
 		close(fd);