Skip to content

Commit

Permalink
util: mark crash closure with Helper
Browse files Browse the repository at this point in the history
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
  • Loading branch information
shoenig and ccoVeille authored Aug 27, 2024
1 parent 01576f9 commit b0db629
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/tempfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ func TempFile(t T, settings ...TempFileSetting) (path string) {
}

var err error
crash := func() {
crash := func(t T)

Check failure on line 89 in util/tempfile.go

View workflow job for this annotation

GitHub Actions / run-changes

expected expression
t.Helper()
t.Fatalf("%s: %v", "TempFile", err)
}
file, err := os.CreateTemp(*allSettings.path, allSettings.namePattern)

Check failure on line 93 in util/tempfile.go

View workflow job for this annotation

GitHub Actions / run-lint

expected declaration, found file (typecheck)

Check failure on line 93 in util/tempfile.go

View workflow job for this annotation

GitHub Actions / run-changes

expected declaration, found file
Expand Down

0 comments on commit b0db629

Please sign in to comment.