aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/writer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index 91113d97..8bdd3382 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -447,10 +447,8 @@ write_list_obj(SerdWriter* writer,
--writer->indent;
write_sep(writer, SEP_LIST_END);
return true;
- } else if (strcmp((const char*)predicate->buf, NS_RDF "rest")) {
- if (!strcmp((const char*)predicate->buf, NS_RDF "first")) {
- write_sep(writer, SEP_LIST_SEP);
- }
+ } else if (!strcmp((const char*)predicate->buf, NS_RDF "first")) {
+ write_sep(writer, SEP_LIST_SEP);
write_node(writer, object, datatype, lang, FIELD_OBJECT, flags);
}
return false;