aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-05 19:56:25 +0200
committerDavid Robillard <d@drobilla.net>2020-07-05 19:58:09 +0200
commit8d69b980429f7bf9202cb6f117b58f3fafd6c7a4 (patch)
tree619ff2d08bc4fc0122210f32775443babdb0d3d3
parent08d865231b4a19540b26714cb9d2425458beed84 (diff)
downloadserd-8d69b980429f7bf9202cb6f117b58f3fafd6c7a4.tar.gz
serd-8d69b980429f7bf9202cb6f117b58f3fafd6c7a4.tar.bz2
serd-8d69b980429f7bf9202cb6f117b58f3fafd6c7a4.zip
Remove unreachable code
-rw-r--r--src/n3.c5
1 files changed, 2 insertions, 3 deletions
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