Skip to content

Commit

Permalink
style: format code with Prettier and StandardJS
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in d60ea6b according to the output
from Prettier and StandardJS.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Jan 27, 2024
1 parent d60ea6b commit 8f40d8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class CameraModal extends Modal {

const handleImageSelectChange = async (
file: File,
isImage: boolean = true
isImage: boolean = true,
) => {
const chosenFile = file;
const bufferFile = await chosenFile.arrayBuffer();
Expand All @@ -114,7 +114,7 @@ class CameraModal extends Modal {
const saveFile = async (
file: ArrayBuffer,
isImage = false,
fileName = ""
fileName = "",
) => {
if (!fileName) {
const dateString = (new Date() + "")
Expand All @@ -131,7 +131,7 @@ class CameraModal extends Modal {

const filePath = this.chosenFolderPath + "/" + fileName;
const folderExists = app.vault.getAbstractFileByPath(
this.chosenFolderPath
this.chosenFolderPath,
);
if (!folderExists)
await app.vault.createFolder(this.chosenFolderPath);
Expand All @@ -145,7 +145,7 @@ class CameraModal extends Modal {
isImage
? `![${fileName}](${filePath})\n`
: `\n![[${filePath}]]\n`,
cursor
cursor,
);
this.close();
};
Expand Down

0 comments on commit 8f40d8e

Please sign in to comment.