Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / dot-prop / index.js
index 03099a4dc1077d247d9e3b840138bf5d9693ef91..a90f59950eb97228aedbf24329c4879e0b577506 100644 (file)
@@ -93,7 +93,7 @@ module.exports = {
 
        delete(object, path) {
                if (!isObj(object) || typeof path !== 'string') {
-                       return;
+                       return false;
                }
 
                const pathArray = getPathSegments(path);
@@ -103,13 +103,13 @@ module.exports = {
 
                        if (i === pathArray.length - 1) {
                                delete object[p];
-                               return;
+                               return true;
                        }
 
                        object = object[p];
 
                        if (!isObj(object)) {
-                               return;
+                               return false;
                        }
                }
        },