Skip to content

Commit 9191ef7

Browse files
committed
error: don't check string after assert
1 parent 50b3c2d commit 9191ef7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/errors.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ int git_error_set_str(int error_class, const char *string)
107107

108108
GIT_ASSERT_ARG(string);
109109

110-
if (!string) {
111-
git_error_set(GIT_ERROR_INVALID, "unspecified caller error");
112-
return -1;
113-
}
114-
115110
git_buf_clear(buf);
116111
git_buf_puts(buf, string);
117112

0 commit comments

Comments
 (0)