Format code

This commit is contained in:
okvdai
2023-06-20 20:17:52 +02:00
parent a8bbd9ea39
commit c1cd3a6fc7
@@ -20,7 +20,8 @@ bool function pulseRequestData(string givenURL, table parameterTable, string tab
table<string, array<string> > requestTable table<string, array<string> > requestTable
void functionref (HttpRequestResponse) onSuccess = void function(HttpRequestResponse response) : (givenURL, parameterTable, requestTable, tablepath) void functionref (HttpRequestResponse) onSuccess = void function(HttpRequestResponse response) : (givenURL, parameterTable, requestTable, tablepath)
{ {
if (NSIsSuccessHttpCode(response.statusCode)){ if (NSIsSuccessHttpCode(response.statusCode))
{
table DecodedJSON = DecodeJSON(response.body) table DecodedJSON = DecodeJSON(response.body)
if ("map" in parameterTable) if ("map" in parameterTable)
{ {
@@ -56,7 +57,7 @@ int function pulseParse(...) //Returns data from our pulseData table.
if (i < expect int(vargc) - 1) { if (i < expect int(vargc) - 1) {
if (expect string (vargv[i]) in parser) { if (expect string (vargv[i]) in parser) {
parser = expect table(parser[expect string(vargv[i])]) parser = expect table(parser[expect string(vargv[i])])
} else {break} } else break
} else { } else {
result = expect int(parser[expect string(vargv[i])]) result = expect int(parser[expect string(vargv[i])])
} }