Skip to content

Commit

Permalink
Let this project able to support the dotnet 6.0
Browse files Browse the repository at this point in the history
Follow this PR to make the change:
xt0rted#406
  • Loading branch information
andy840119 authored Jul 22, 2023
1 parent 5b04c6e commit 21ea792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dotnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ function formatOnlyChangedFiles(onlyChangedFiles: boolean): boolean {
async function formatVersion3(options: FormatOptions): Promise<boolean> {
const execOptions: ExecOptions = { ignoreReturnCode: true };

const dotnetFormatOptions = ["format", "--check"];
const dotnetFormatOptions = ["format"];

if (options.dryRun) {
dotnetFormatOptions.push("--dry-run");
dotnetFormatOptions.push("--verify-no-changes");
}

if (formatOnlyChangedFiles(options.onlyChangedFiles)) {
Expand Down

0 comments on commit 21ea792

Please sign in to comment.