Skip to content

Commit

Permalink
fix lint for error handling in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Oct 15, 2024
1 parent b1d07a3 commit dbbe0d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/connector/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func createConnector(ctx context.Context, t *testing.T, fixtureName string) (*LD
return nil, err
}
fdPath := fd.Name()
fd.Close()
_ = fd.Close()
t.Cleanup(func() {
os.Remove(fdPath)
_ = os.Remove(fdPath)
})

err = os.WriteFile(fdPath, data, 0600)
Expand Down

0 comments on commit dbbe0d4

Please sign in to comment.