diff --git a/src/options/block-indent.js b/src/options/block-indent.js
index <HASH>..<HASH> 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;
       }
Fix ast.remove is not a function error

This PR fixes an error that occurs when `"eof-newline": false,` as reported and solved here: <URL>