Skip to content

Commit

Permalink
Use .push instead of .emit('data') where possible
Browse files Browse the repository at this point in the history
Related to #71
  • Loading branch information
Tpt committed Aug 17, 2022
1 parent df0af6d commit 7233b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/JsonLdParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class JsonLdParser extends Transform implements RDF.Sink<EventEmitter, RD
if (listPointer) {
// Terminate the list if the had at least one value
if (listPointer.value) {
this.emit('data', this.util.dataFactory.quad(listPointer.value, this.util.rdfRest, this.util.rdfNil,
this.push(this.util.dataFactory.quad(listPointer.value, this.util.rdfRest, this.util.rdfNil,
this.util.getDefaultGraph()));
}

Expand Down

0 comments on commit 7233b16

Please sign in to comment.