@@ -1385,25 +1385,27 @@ static struct command_result *plugin_rpcmethod_dispatch(struct command *cmd,
13851385 return command_still_pending (cmd );
13861386}
13871387
1388- static const char * plugin_rpcmethod_clnrest_add (struct plugin * plugin ,
1389- const char * buffer ,
1390- const jsmntok_t * tok ,
1391- struct json_command * cmd )
1388+ static const char * plugin_rpcmethod_clnrest_add (struct plugin * plugin ,
1389+ const char * buffer ,
1390+ const jsmntok_t * tok ,
1391+ struct json_command * cmd )
13921392{
13931393 const jsmntok_t * clnresttok = json_get_member (buffer , tok , "clnrest" );
13941394
13951395 if (!clnresttok ) {
1396- cmd -> clnrest = NULL ;
1397- return NULL ;
1396+ cmd -> clnrest = NULL ;
1397+ return NULL ;
13981398 }
13991399
14001400 struct clnrest * clnrest = tal (cmd , struct clnrest );
14011401
1402- // TODO: check each field for validity
1402+ /* TODO: check each field for validity */
14031403
14041404 const jsmntok_t * pathtok = json_get_member (buffer , clnresttok , "path" );
1405- const jsmntok_t * methodtok = json_get_member (buffer , clnresttok , "method" );
1406- const jsmntok_t * contenttypetok = json_get_member (buffer , clnresttok , "content_type" );
1405+ const jsmntok_t * methodtok =
1406+ json_get_member (buffer , clnresttok , "method" );
1407+ const jsmntok_t * contenttypetok =
1408+ json_get_member (buffer , clnresttok , "content_type" );
14071409 const jsmntok_t * runetok = json_get_member (buffer , clnresttok , "rune" );
14081410 const jsmntok_t * pluginnametok = json_get_member (buffer , tok , "name" );
14091411
@@ -1420,7 +1422,8 @@ static const char *plugin_rpcmethod_clnrest_add(struct plugin *plugin,
14201422 }
14211423
14221424 if (contenttypetok ) {
1423- clnrest -> content_type = json_strdup (clnrest , buffer , contenttypetok );
1425+ clnrest -> content_type =
1426+ json_strdup (clnrest , buffer , contenttypetok );
14241427 } else {
14251428 clnrest -> content_type = "application/json" ;
14261429 }
0 commit comments