Simpler's better

This commit is contained in:
Crazylemon64
2016-08-16 21:10:26 -07:00
parent e38a0a1d64
commit 19a5ee350f
+1 -8
View File
@@ -384,16 +384,9 @@ body
html += "</ol>"
else
html += "<ul>"
// First loop to check for associativity
var/associative = FALSE
for(var/entry in L)
if(!(isnum(entry) || isnull(L[entry])))
associative = TRUE
break
// then we do it again! Except now with knowledge of associativity
var/index = 1
for(var/entry in L)
if(associative)
if(istext(entry))
html += debug_variable(entry, L[entry], level + 1)
else
html += debug_variable(index, L[index], level + 1)