Skip to content

Commit

Permalink
style(lint): format with biome
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Oct 4, 2024
1 parent 90a6186 commit 810d1a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/GitHub/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,14 +606,16 @@ export class FilesManagement extends Publisher {
}
return newFiles;
}

async wasEditedSinceLastSync(
file: TFile,
repo: Repository | null,
repoPath: string
): Promise<boolean> {
//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,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 810d1a3

Please sign in to comment.