Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
TollensWP committed Dec 9, 2024
1 parent 7606c69 commit b72de4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/twinklearv.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,9 @@ Twinkle.arv.callback.getAn3ReportData = function(input) {
page = queryResponse;
} else if (queryResponse.query) {
const pageIds = queryResponse.query.pageids;
if (!Array.isArray(pageIds) || pageIds.length !== 1) reject({ message: 'Error parsing diff.', data: queryResponse });
if (!Array.isArray(pageIds) || pageIds.length !== 1) {
reject({ message: 'Error parsing diff.', data: queryResponse });
}
page = queryResponse.query.pages[pageIds[0]];
} else {
reject({ message: 'Could not find any diff associated with the URL provided.', data: queryResponse });
Expand Down

0 comments on commit b72de4c

Please sign in to comment.