main
gardenapple 2 years ago
parent 504b5188e3
commit a03acb31d5
No known key found for this signature in database
GPG Key ID: CAF17E9ABE789268

@ -465,7 +465,7 @@ export default async function(
if (outputJSON) {
const result = {};
if (wantedProperties) {
for (propertyName of wantedProperties)
for (const propertyName of wantedProperties)
result[propertyName] = Properties.get(propertyName)(article, false, document);
} else {
for (const [name, func] of Properties) {
@ -475,7 +475,7 @@ export default async function(
writeStream.write(JSON.stringify(result));
} else {
if (wantedProperties) {
for (propertyName of wantedProperties)
for (const propertyName of wantedProperties)
writeStream.write(Properties.get(propertyName)(article, true, document) + '\n');
} else {
writeStream.write(`<!DOCTYPE html>

Loading…
Cancel
Save