diff --git a/src/lsp/util/removeMeta.ts b/src/lsp/util/removeMeta.ts index dfe58d336a4d4f355d1e634175694e44d8d4e756..7e379a81a580ee60a4462230a61dd134afe32e9e 100644 --- a/src/lsp/util/removeMeta.ts +++ b/src/lsp/util/removeMeta.ts @@ -3,10 +3,9 @@ export default function removeMeta(obj: any): any { let result = {} for (let key in obj) { - if (key.substr(0, 2) === '__') continue if (isObject(obj[key])) { result[key] = removeMeta(obj[key]) - } else { + } else if (key.substr(0, 2) !== '__') { result[key] = obj[key] } }