Browse Source

Prettiers 💄

main
Eric Amodio 2 years ago
parent
commit
53b7147c39
10 changed files with 12 additions and 12 deletions
  1. +1
    -1
      src/commands/git/branch.ts
  2. +1
    -1
      src/commands/openIssueOnRemote.ts
  3. +1
    -1
      src/commands/openPullRequestOnRemote.ts
  4. +1
    -1
      src/commands/resetSuppressedWarnings.ts
  5. +2
    -2
      src/commands/searchCommits.ts
  6. +2
    -2
      src/commands/showQuickFileHistory.ts
  7. +1
    -1
      src/commands/toggleLineBlame.ts
  8. +1
    -1
      src/plus/subscription/utils.ts
  9. +1
    -1
      src/views/nodes/remoteNode.ts
  10. +1
    -1
      src/webviews/home/homeWebviewView.ts

+ 1
- 1
src/commands/git/branch.ts View File

@ -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);
}

+ 1
- 1
src/commands/openIssueOnRemote.ts View File

@ -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));
}

+ 1
- 1
src/commands/openPullRequestOnRemote.ts View File

@ -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));
}

+ 1
- 1
src/commands/resetSuppressedWarnings.ts View File

@ -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);
}
}

+ 2
- 2
src/commands/searchCommits.ts View File

@ -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,
},
}));
});
}
}

+ 2
- 2
src/commands/showQuickFileHistory.ts View File

@ -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,
}
: {},
}));
});
}
}

+ 1
- 1
src/commands/toggleLineBlame.ts View File

@ -14,7 +14,7 @@ export class ToggleLineBlameCommand extends ActiveEditorCommand {
async execute(editor: TextEditor, _uri?: Uri): Promise<void> {
try {
(await this.container.lineAnnotations.toggle(editor));
await this.container.lineAnnotations.toggle(editor);
} catch (ex) {
Logger.error(ex, 'ToggleLineBlameCommand');
void window.showErrorMessage(

+ 1
- 1
src/plus/subscription/utils.ts View File

@ -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;
}

+ 1
- 1
src/views/nodes/remoteNode.ts View File

@ -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();
}
}

+ 1
- 1
src/webviews/home/homeWebviewView.ts View File

@ -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;
}

Loading…
Cancel
Save