diff --git a/src/commands/git/branch.ts b/src/commands/git/branch.ts index 91e1fa4..96b6052 100644 --- a/src/commands/git/branch.ts +++ b/src/commands/git/branch.ts @@ -329,7 +329,7 @@ export class BranchGitCommand extends QuickCommand { QuickCommand.endSteps(state); if (state.flags.includes('--switch')) { - (await state.repo.switch(state.reference.ref, { createBranch: state.name })); + await state.repo.switch(state.reference.ref, { createBranch: state.name }); } else { state.repo.branch(...state.flags, state.name, state.reference.ref); } diff --git a/src/commands/openIssueOnRemote.ts b/src/commands/openIssueOnRemote.ts index 48e2d82..cd4660b 100644 --- a/src/commands/openIssueOnRemote.ts +++ b/src/commands/openIssueOnRemote.ts @@ -37,7 +37,7 @@ export class OpenIssueOnRemoteCommand extends Command { async execute(args: OpenIssueOnRemoteCommandArgs) { if (args.clipboard) { - (await env.clipboard.writeText(args.issue.url)); + await env.clipboard.writeText(args.issue.url); } else { void env.openExternal(Uri.parse(args.issue.url)); } diff --git a/src/commands/openPullRequestOnRemote.ts b/src/commands/openPullRequestOnRemote.ts index d720731..b687f79 100644 --- a/src/commands/openPullRequestOnRemote.ts +++ b/src/commands/openPullRequestOnRemote.ts @@ -46,7 +46,7 @@ export class OpenPullRequestOnRemoteCommand extends Command { } if (args.clipboard) { - (await env.clipboard.writeText(args.pr.url)); + await env.clipboard.writeText(args.pr.url); } else { void env.openExternal(Uri.parse(args.pr.url)); } diff --git a/src/commands/resetSuppressedWarnings.ts b/src/commands/resetSuppressedWarnings.ts index bea5ae7..958e30e 100644 --- a/src/commands/resetSuppressedWarnings.ts +++ b/src/commands/resetSuppressedWarnings.ts @@ -12,6 +12,6 @@ export class ResetSuppressedWarningsCommand extends Command { } async execute() { - (await configuration.update('advanced.messages', undefined, ConfigurationTarget.Global)); + await configuration.update('advanced.messages', undefined, ConfigurationTarget.Global); } } diff --git a/src/commands/searchCommits.ts b/src/commands/searchCommits.ts index 2702abc..ec13688 100644 --- a/src/commands/searchCommits.ts +++ b/src/commands/searchCommits.ts @@ -47,7 +47,7 @@ export class SearchCommitsCommand extends Command { } async execute(args?: SearchCommitsCommandArgs) { - (await executeGitCommand({ + await executeGitCommand({ command: 'search', prefillOnly: args?.prefillOnly, state: { @@ -57,6 +57,6 @@ export class SearchCommitsCommand extends Command { configuration.get('gitCommands.search.showResultsInSideBar') ?? args?.showResultsInSideBar, openPickInView: args?.openPickInView ?? false, }, - })); + }); } } diff --git a/src/commands/showQuickFileHistory.ts b/src/commands/showQuickFileHistory.ts index bbc7a9c..ceb3c78 100644 --- a/src/commands/showQuickFileHistory.ts +++ b/src/commands/showQuickFileHistory.ts @@ -60,7 +60,7 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand { return; } - (await executeGitCommand({ + await executeGitCommand({ command: 'log', state: gitUri?.repoPath != null @@ -70,6 +70,6 @@ export class ShowQuickFileHistoryCommand extends ActiveEditorCachedCommand { fileName: gitUri.relativePath, } : {}, - })); + }); } } diff --git a/src/commands/toggleLineBlame.ts b/src/commands/toggleLineBlame.ts index d3b8c87..b0ce423 100644 --- a/src/commands/toggleLineBlame.ts +++ b/src/commands/toggleLineBlame.ts @@ -14,7 +14,7 @@ export class ToggleLineBlameCommand extends ActiveEditorCommand { async execute(editor: TextEditor, _uri?: Uri): Promise { try { - (await this.container.lineAnnotations.toggle(editor)); + await this.container.lineAnnotations.toggle(editor); } catch (ex) { Logger.error(ex, 'ToggleLineBlameCommand'); void window.showErrorMessage( diff --git a/src/plus/subscription/utils.ts b/src/plus/subscription/utils.ts index 3873ed1..745724e 100644 --- a/src/plus/subscription/utils.ts +++ b/src/plus/subscription/utils.ts @@ -16,6 +16,6 @@ export async function ensurePlusFeaturesEnabled(): Promise { if (result !== confirm) return false; - (await configuration.updateEffective('plusFeatures.enabled', true)); + await configuration.updateEffective('plusFeatures.enabled', true); return true; } diff --git a/src/views/nodes/remoteNode.ts b/src/views/nodes/remoteNode.ts index 9e94d5f..5d9ee44 100644 --- a/src/views/nodes/remoteNode.ts +++ b/src/views/nodes/remoteNode.ts @@ -159,7 +159,7 @@ export class RemoteNode extends ViewNode { @log() async setAsDefault(state: boolean = true) { - (await this.remote.setAsDefault(state)); + await this.remote.setAsDefault(state); void this.triggerChange(); } } diff --git a/src/webviews/home/homeWebviewView.ts b/src/webviews/home/homeWebviewView.ts index 3b0a6c0..2c830cf 100644 --- a/src/webviews/home/homeWebviewView.ts +++ b/src/webviews/home/homeWebviewView.ts @@ -105,7 +105,7 @@ export class HomeWebviewView extends WebviewViewBase { if (this._validating == null) { this._validating = this.container.subscription.validate(); try { - (await this._validating); + await this._validating; } finally { this._validating = undefined; }