Skip to content

Commit

Permalink
lint: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall committed Sep 30, 2024
1 parent 712d258 commit eacde97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/auditbeat/module/system/user/users_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func readPasswdFile(readPasswords bool) ([]*User, error) {
if passwd == nil {
// getpwent() can return ENOENT even when there is no error,
// see https://github.com/systemd/systemd/issues/9585.
if err != nil && errors.Is(err, syscall.ENOENT) {
if err != nil && !errors.Is(err, syscall.ENOENT) {
return users, fmt.Errorf("error getting user: %w", err)
}

Expand Down

0 comments on commit eacde97

Please sign in to comment.