Commit 9191ef70 by Edward Thomson

error: don't check string after assert

parent 50b3c2d5
......@@ -107,11 +107,6 @@ int git_error_set_str(int error_class, const char *string)
GIT_ASSERT_ARG(string);
if (!string) {
git_error_set(GIT_ERROR_INVALID, "unspecified caller error");
return -1;
}
git_buf_clear(buf);
git_buf_puts(buf, string);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment