Skip to content

Commit 658f4c4

Browse files
authored
Merge pull request #1125 from bgriffith/hotfix/is-undefined
Check before calling is method
2 parents 9fd26f2 + 8e34fa3 commit 658f4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/empty-line-between-blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var findNearestReturnSCSS = function (parent, i) {
5252
var findNearestReturnSass = function (parent, i) {
5353
var previous;
5454

55-
if (parent.content[i - 1]) {
55+
if (!parent.is('ident') && parent.content[i - 1]) {
5656
previous = parent.content[i - 1];
5757

5858
if (counter === 2) {

0 commit comments

Comments
 (0)