Skip to content

Commit

Permalink
Merge pull request #1125 from bgriffith/hotfix/is-undefined
Browse files Browse the repository at this point in the history
Check before calling is method
  • Loading branch information
DanPurdy committed Aug 30, 2017
2 parents 9fd26f2 + 8e34fa3 commit 658f4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/empty-line-between-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var findNearestReturnSCSS = function (parent, i) {
var findNearestReturnSass = function (parent, i) {
var previous;

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

if (counter === 2) {
Expand Down

0 comments on commit 658f4c4

Please sign in to comment.