summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-30 08:40:26 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-08-30 09:02:49 -0400
commit9191ef70e22ec8e6eb102c55147b47ce49a2b633 (patch)
treecbf9c16150340460b11f4950643fa9800601a9db
parent50b3c2d56d736c9168b46038ab996ca5c248aa46 (diff)
downloadlibgit2-9191ef70e22ec8e6eb102c55147b47ce49a2b633.tar.gz
error: don't check string after assert
-rw-r--r--src/errors.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/errors.c b/src/errors.c
index 3d1d1c9a1..ce883b2da 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -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);