From 810d1a32f7635ceb5f0adfe096619e1b745bfd1c Mon Sep 17 00:00:00 2001 From: Mara Date: Fri, 4 Oct 2024 10:53:00 +0200 Subject: [PATCH] style(lint): format with biome --- src/GitHub/files.ts | 6 ++++-- src/utils/logs.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GitHub/files.ts b/src/GitHub/files.ts index 0e53533a..f3ac5abe 100644 --- a/src/GitHub/files.ts +++ b/src/GitHub/files.ts @@ -606,14 +606,16 @@ export class FilesManagement extends Publisher { } return newFiles; } - + async wasEditedSinceLastSync( file: TFile, repo: Repository | null, repoPath: string ): Promise { //first check if the file exist in github - if (this.settings.embed.forcePush || this.settings.embed.forcePush == null) + if (this.settings.embed.forcePush || + this.settings.embed.forcePush == null || + this.settings.github.dryRun.enable) return true; const githubFile = await this.octokit.request("GET /repos/{owner}/{repo}/commits", { owner: repo?.user ?? this.settings.github.user, diff --git a/src/utils/logs.ts b/src/utils/logs.ts index 3f9224dc..d22c611d 100644 --- a/src/utils/logs.ts +++ b/src/utils/logs.ts @@ -90,7 +90,7 @@ export class Logs { }).innerHTML = message; return new Notice(noticeFrag, 0); } - + noticeErrorUpload(properties: Properties | Properties[]) { const repo = Array.isArray(properties) ? properties : [properties]; for (const repository of repo) {