diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-30 08:40:26 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-08-30 09:02:49 -0400 |
commit | 9191ef70e22ec8e6eb102c55147b47ce49a2b633 (patch) | |
tree | cbf9c16150340460b11f4950643fa9800601a9db | |
parent | 50b3c2d56d736c9168b46038ab996ca5c248aa46 (diff) | |
download | libgit2-9191ef70e22ec8e6eb102c55147b47ce49a2b633.tar.gz |
error: don't check string after assert
-rw-r--r-- | src/errors.c | 5 |
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); |