Skip to content

Commit 6ad2aaf

Browse files
authored
Send the -d switch to gofmt (#14496)
* Send the -d switch to gofmt * Update azure-pipelines.yml
1 parent 42b0178 commit 6ad2aaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
displayName: 'Copyright Header Check'
7979
failOnStderr: true
8080
condition: succeededOrFailed()
81-
- script: gofmt -s -l -w $(find . -path ./vendor -prune -o -name '*.go' -print) >&2
81+
- script: gofmt -s -l -d $(find . -path ./vendor -prune -o -name '*.go' -print) >&2
8282
workingDirectory: '$(sdkPath)'
8383
displayName: 'Format Check'
8484
failOnStderr: true

eng/pipelines/templates/steps/analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ steps:
4040
4141
- script: |
4242
echo check source file formatting in $(pwd)
43-
gofmt -s -l -w $(find . -name '*.go' -print) >&2
43+
gofmt -s -l -d $(find . -name '*.go' -print) >&2
4444
displayName: 'Format Check'
4545
condition: succeededOrFailed()
4646
failOnStderr: true

0 commit comments

Comments
 (0)