diff --git a/src/options/block-indent.js b/src/options/block-indent.js index b5f473fb..245211e5 100644 --- a/src/options/block-indent.js +++ b/src/options/block-indent.js @@ -45,7 +45,7 @@ let option = { var spaces = whitespaceNode.content.replace(/\n[ \t]+/gm, '\n'); if (spaces === '') { - ast.remove(i); + ast.removeChild(i); } else { whitespaceNode.content = spaces; }