diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/reader.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/reader.c b/src/reader.c index d63c2734..68a5f886 100644 --- a/src/reader.c +++ b/src/reader.c @@ -159,10 +159,8 @@ read_statement(SerdReader* reader) static bool read_doc(SerdReader* reader) { - switch (reader->syntax) { - case SERD_NQUADS: return read_nquadsDoc(reader); - default: return read_turtleTrigDoc(reader); - } + return ((reader->syntax == SERD_NQUADS) ? read_nquadsDoc(reader) + : read_turtleTrigDoc(reader)); } SerdReader* |