Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelli321 committed Dec 6, 2024
1 parent 395854a commit 046096e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/statsdreceiver/internal/transport/uds_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (u *udsServer) Close() error {
func prepareSocket(socketPath string) error {
if _, err := os.Stat(socketPath); err == nil {
// File exists, remove it
if err := os.Remove(socketPath); err != nil {
if err = os.Remove(socketPath); err != nil {
return fmt.Errorf("failed to remove existing socket file: %w", err)
}
} else if !os.IsNotExist(err) {
Expand Down

0 comments on commit 046096e

Please sign in to comment.