Skip to content

Commit

Permalink
add: go formatting to the pipeline (#1574)
Browse files Browse the repository at this point in the history
* add: go formatting to the pipeline

* formatted missing files
  • Loading branch information
afonsojramos authored Apr 7, 2022
1 parent 0a89573 commit be4a441
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Build
run: go build .

- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi

release:
name: Release
strategy:
Expand Down
2 changes: 1 addition & 1 deletion src/utils/show-dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func ShowDirectory(dir string) error {

if runtime.GOOS == "windows" {
_, err = exec.Command("explorer", dir).Output()
if(err != nil && err.Error() == "exit status 1") {
if err != nil && err.Error() == "exit status 1" {
err = nil
}
} else if runtime.GOOS == "linux" {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/ternary-bool.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ func (b TernaryBool) ToForceOperator() string {
}

return ""
}
}

0 comments on commit be4a441

Please sign in to comment.