Skip to content

Commit

Permalink
style: use modern JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jun 13, 2024
1 parent 254c61e commit 10a8ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/event-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = function() {

function hasName(event) {
return (
event.name && event.name.trim() !== ''
event.name?.trim() !== ''
);
}

Expand Down

0 comments on commit 10a8ad6

Please sign in to comment.