diff options
author | Nicholas Johnson <nick@nicksphere.ch> | 2022-01-18 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicksphere.ch> | 2022-01-18 00:00:00 +0000 |
commit | 08641b0939f9d2e28f433328e5cf56c9598bcebfae13ff1bb9db544bbb066404 (patch) | |
tree | 84c7a8ccc3dd56ba16cb19615204d30391e596ed15b91dafe354684887ddfa63 | |
parent | d65e66944348eb203371fc76d783684f7c5195e45b64a72f74bea9421fcbbb4b (diff) |
Remove redundant NULL check in convert_link_line()
-rw-r--r-- | src/gemini2html.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gemini2html.c b/src/gemini2html.c index 11fca67..a212916 100644 --- a/src/gemini2html.c +++ b/src/gemini2html.c @@ -187,8 +187,6 @@ char* convert_link_line(const char* line, const size_t size) { size_t before_link = 2; skip_whitespace(line, &before_link); - if (line[before_link] == '\0' || line[before_link] == '\n') return escape_text_add_tags("<a>", "", "</a>", 0); - /* find end of link */ size_t after_link = before_link; skip_non_whitespace(line, &after_link); |