Skip to content

Commit 0c4e721

Browse files
committed
Simplify selector further
1 parent 660b20d commit 0c4e721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/async-server-action.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
':function'(node) {
4040
currentFunction = node;
4141
},
42-
':function[async=false]>BlockStatement>ExpressionStatement:first-child[expression.value="use server"]'() {
42+
':function[async=false]>BlockStatement>:first-child[expression.value="use server"]'() {
4343
report(context, messages.asyncServerAction, 'asyncServerAction', {
4444
node: currentFunction,
4545
fix(fixer) {

0 commit comments

Comments
 (0)