There was an error while loading. Please reload this page.
1 parent 73afcea commit fa09bb8Copy full SHA for fa09bb8
lib/rules/no-negated-v-if-condition.js
@@ -153,8 +153,9 @@ module.exports = {
153
* @returns {string}
154
*/
155
function getElementContent(element) {
156
- if (element.children.length === 0) return ''
157
- if (!element.endTag) return ''
+ if (element.children.length === 0 || !element.endTag) {
+ return ''
158
+ }
159
160
const contentStart = element.startTag.range[1]
161
const contentEnd = element.endTag.range[0]
0 commit comments