Skip to content

Commit

Permalink
Change placement of err check
Browse files Browse the repository at this point in the history
  • Loading branch information
swi-jared committed Aug 1, 2024
1 parent 1ec3908 commit 0d4b73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@ func TestYamlConfig(t *testing.T) {
require.NoError(t, err)

f, err := os.CreateTemp("", "*-test-config.yaml")
require.NoError(t, err)
defer func() {
_ = f.Close()
os.Remove(f.Name())
}()
require.NoError(t, err)
err = os.WriteFile(f.Name(), out, 0644)
require.NoError(t, err)

Expand Down

0 comments on commit 0d4b73c

Please sign in to comment.