Replace more implicit array to bool conversions

This commit is contained in:
Daniel Murphy 2015-01-28 16:33:12 +11:00
parent ad5ae8767f
commit f255c9e689
7 changed files with 20 additions and 20 deletions

View file

@ -714,7 +714,7 @@ JSONValue parseJSON(T)(T json, int maxDepth = -1) if(isInputRange!T)
goto Next;
}
return str.data ? str.data : "";
return str.data.length ? str.data : "";
}
void parseValue(JSONValue* value)