Skip to content

Commit

Permalink
npm run lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano committed Sep 9, 2024
1 parent cbecb86 commit 84e1acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export class StudioActions {
return this.api
.actionQuery("SELECT %Atelier_v1_Utils.Extension_ExtensionEnabled() AS Enabled", [])
.then((data) => data.result.content)
.then((content) => (content && content.length ? content[0]?.Enabled ?? false : false))
.then((content) => (content && content.length ? (content[0]?.Enabled ?? false) : false))
.catch(() => false); // Treat any errors as "no source control"
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/documentIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async function updateIndexAndSyncChanges(
/** Get all `Uri`s for `document` in `wsFolder` */
export function getUrisForDocument(document: string, wsFolder: vscode.WorkspaceFolder): vscode.Uri[] {
const index = wsFolderIndex.get(wsFolder.uri.toString());
return index ? index.documents.get(document) ?? [] : [];
return index ? (index.documents.get(document) ?? []) : [];
}

/** Clean up all `FileSystemWatcher`s */
Expand Down

0 comments on commit 84e1acd

Please sign in to comment.