From 8d69b980429f7bf9202cb6f117b58f3fafd6c7a4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Jul 2020 19:56:25 +0200 Subject: Remove unreachable code --- src/n3.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/n3.c b/src/n3.c index 4b1ed676..a6250401 100644 --- a/src/n3.c +++ b/src/n3.c @@ -1324,11 +1324,10 @@ read_directive(SerdReader* reader) switch (peek_byte(reader)) { case 'B': case 'b': return read_base(reader, sparql, true); case 'P': case 'p': return read_prefixID(reader, sparql, true); - default: - return r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid directive\n"); + default: break; } - return true; + return r_err(reader, SERD_ERR_BAD_SYNTAX, "invalid directive\n"); } static bool -- cgit v1.2.1