Skip to content

Commit 7233b16

Browse files
authored
Use .push instead of .emit('data') where possible
Related to #71
1 parent df0af6d commit 7233b16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/JsonLdParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export class JsonLdParser extends Transform implements RDF.Sink<EventEmitter, RD
199199
if (listPointer) {
200200
// Terminate the list if the had at least one value
201201
if (listPointer.value) {
202-
this.emit('data', this.util.dataFactory.quad(listPointer.value, this.util.rdfRest, this.util.rdfNil,
202+
this.push(this.util.dataFactory.quad(listPointer.value, this.util.rdfRest, this.util.rdfNil,
203203
this.util.getDefaultGraph()));
204204
}
205205

0 commit comments

Comments
 (0)