Skip to content

Commit 84e1acd

Browse files
committed
npm run lint-fix
1 parent cbecb86 commit 84e1acd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/studio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export class StudioActions {
491491
return this.api
492492
.actionQuery("SELECT %Atelier_v1_Utils.Extension_ExtensionEnabled() AS Enabled", [])
493493
.then((data) => data.result.content)
494-
.then((content) => (content && content.length ? content[0]?.Enabled ?? false : false))
494+
.then((content) => (content && content.length ? (content[0]?.Enabled ?? false) : false))
495495
.catch(() => false); // Treat any errors as "no source control"
496496
}
497497

src/utils/documentIndex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ async function updateIndexAndSyncChanges(
193193
/** Get all `Uri`s for `document` in `wsFolder` */
194194
export function getUrisForDocument(document: string, wsFolder: vscode.WorkspaceFolder): vscode.Uri[] {
195195
const index = wsFolderIndex.get(wsFolder.uri.toString());
196-
return index ? index.documents.get(document) ?? [] : [];
196+
return index ? (index.documents.get(document) ?? []) : [];
197197
}
198198

199199
/** Clean up all `FileSystemWatcher`s */

0 commit comments

Comments
 (0)