Clean up old unused code

This commit is contained in:
Zaid Abdulla committed 2017-01-03 21:18:20 -08:00
1 parent 4b5dc25010
commit 771917a7a6
5 files changed
+4 -50

No files matched your search

+1 -1
View File
@@ -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)