Skip to content

Commit

Permalink
Merge pull request #21 from aldrinjenson/deepsource-transform-be6a683c
Browse files Browse the repository at this point in the history
style: format code with Prettier and StandardJS
  • Loading branch information
aldrinjenson authored Jan 27, 2024
2 parents b248c25 + 8f40d8e commit 928f21f
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 928f21f

Please sign in to comment.