Skip to content

Commit

Permalink
style: object length check
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jan 16, 2024
1 parent 65a8405 commit bace2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const fetchReferences = async (jf2) => {
}

// Only add `references` property if references found
if (Object.entries(references).length !== 0) {
if (Object.entries(references).length > 0) {
jf2.references = references;
}

Expand Down

0 comments on commit bace2ce

Please sign in to comment.