Clean up old unused code
This commit is contained in:
1 parent
4b5dc25010
commit
771917a7a6
5 files changed
+4
-50
No files matched your search
+1
-1
@@ -126,7 +126,7 @@ optimizeProjection = (obj) ->
|
||||
while i < keys.length
|
||||
a = keys[i-1]
|
||||
b = keys[i]
|
||||
if common.startsWith(b, a)
|
||||
if b.startsWith(a)
|
||||
if b.charAt(a.length) == '.' or b.charAt(a.length - 1) == '.'
|
||||
delete obj[b]
|
||||
keys.splice(i--, 1)
|
||||
|
||||
Reference in new issue
Block a user