m-lua-scripting: don't show warning if object key is not a string

The wp_spa_json_parse_string() API also works for strings without quotes.
This commit is contained in:
Julian Bouzas
2022-08-17 10:41:55 -04:00
parent d79c0f45d5
commit 535af7a33e

View File

@@ -152,7 +152,6 @@ push_luajson (lua_State *L, WpSpaJson *json)
WpSpaJson *key = g_value_get_boxed (&item);
g_autofree gchar *key_str = NULL;
WpSpaJson *value = NULL;
g_warn_if_fail (wp_spa_json_is_string (key));
key_str = wp_spa_json_parse_string (key);
g_warn_if_fail (key_str);
g_value_unset (&item);