Skip to content

Commit

Permalink
style: Add missing semicolons and remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Jun 14, 2023
1 parent 44b43e3 commit 98a812a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/anki/zip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ZipHandler {
const loadedZip = unzipSync(zipData, {
filter(file) {
return !file.name.endsWith('/');
}
},
});
this.fileNames = Object.keys(loadedZip);
this.files = [];
Expand Down
2 changes: 1 addition & 1 deletion src/services/NotionService/blocks/BlockHeadings.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
BlockObjectResponse,
GetBlockResponse,
RichTextItemResponse
RichTextItemResponse,
} from '@notionhq/client/build/src/api-endpoints';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const HandleBlockAnnotations = (
return (
<span
style={{
borderBottom: annotations.underline ? '0.05em solid' : ''
borderBottom: annotations.underline ? '0.05em solid' : '',
}}
>
{content}
Expand Down
2 changes: 1 addition & 1 deletion src/services/NotionService/helpers/renderTextChildren.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
EquationRichTextItemResponse,
RichTextItemResponse
RichTextItemResponse,
} from '@notionhq/client/build/src/api-endpoints';
import ReactDOMServer from 'react-dom/server';
import Settings from '../../UploadService/parser/Settings';
Expand Down
1 change: 0 additions & 1 deletion src/services/UploadService/parser/DeckParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ export class DeckParser {
if (card.back) {
const dom = cheerio.load(card.back);
const images = dom('img');
const decodeURIComponent = global.decodeURIComponent;
if (images.length > 0) {
images.each((_i, elem) => {
const originalName = dom(elem).attr('src');
Expand Down

0 comments on commit 98a812a

Please sign in to comment.