Revert "Return empty string when parsing JSON"

This reverts commit f5d1035db0.

Reason for revert: This broke the code as downstream expects
it to be a falsy value while {} will be a true value

Change-Id: I027da332e1aa7e5822fc2115a85453d55dbaa3c6
This commit is contained in:
Dhruv Srivastava
2019-12-02 13:47:45 +00:00
parent f5d1035db0
commit c58e8f0418

View File

@@ -277,7 +277,6 @@
* @return {?}
*/
parsePrefixedJSON(source) {
if (!source) return {};
return JSON.parse(source.substring(JSON_PREFIX.length));
}