Skip to content

Commit

Permalink
style: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanChain committed Nov 14, 2024
1 parent 6b829ff commit f7edb03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/modules/arxiv-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ class PaperFinder {
);
return;
}
for (const idInfo of info?.articleids) {
const idInfos = info?.articleids;
if (!idInfos) return undefined;
for (const idInfo of idInfos) {
if (idInfo.idtype === "doi") {
return { doi: idInfo.value, title: "Published PDF" };
}
Expand Down
3 changes: 2 additions & 1 deletion src/modules/prefer-pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class PreferPDF {
return true;
},
commandListener: async (ev) => {
const selectedAttachment = Zotero.getActiveZoteroPane().getSelectedItems()[0];
const selectedAttachment =
Zotero.getActiveZoteroPane().getSelectedItems()[0];
PreferPDF.prefer(selectedAttachment);
},
icon: menuIcon,
Expand Down

0 comments on commit f7edb03

Please sign in to comment.