Skip to content

Commit

Permalink
refactor: Simplify (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer authored Aug 12, 2024
1 parent 01be1ec commit 2d927ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ export class FileWriter implements SummaryWriter {
prov: 'http://www.w3.org/ns/prov#',
},
});
for (const quad of summary) {
writer.addQuad(quad);
}
writer.addQuads([...summary]);
writer.end(
async (error, result) =>
async (_error, result) =>
await writeFile(
`output/${filenamifyUrl(dataset.iri, {replacement: '-'})}.ttl`,
result
Expand Down

0 comments on commit 2d927ba

Please sign in to comment.