diff --git a/lib/utils/get-role.js b/lib/utils/get-role.js index 35e63308..54654ee8 100644 --- a/lib/utils/get-role.js +++ b/lib/utils/get-role.js @@ -46,7 +46,8 @@ function getRole(context, node) { const explicitRole = getLiteralPropValue(getProp(node.attributes, 'role')) if (explicitRole) { return explicitRole - } else if (getProp(node.attributes, 'role')) { // If role is set to anything other than a literal prop + } else if (getProp(node.attributes, 'role')) { + // If role is set to anything other than a literal prop return undefined }