@@ -1416,25 +1416,27 @@ static struct command_result *plugin_rpcmethod_dispatch(struct command *cmd,
14161416 return command_still_pending (cmd );
14171417}
14181418
1419- static const char * plugin_rpcmethod_clnrest_add (struct plugin * plugin ,
1420- const char * buffer ,
1421- const jsmntok_t * tok ,
1422- struct json_command * cmd )
1419+ static const char * plugin_rpcmethod_clnrest_add (struct plugin * plugin ,
1420+ const char * buffer ,
1421+ const jsmntok_t * tok ,
1422+ struct json_command * cmd )
14231423{
14241424 const jsmntok_t * clnresttok = json_get_member (buffer , tok , "clnrest" );
14251425
14261426 if (!clnresttok ) {
1427- cmd -> clnrest = NULL ;
1428- return NULL ;
1427+ cmd -> clnrest = NULL ;
1428+ return NULL ;
14291429 }
14301430
14311431 struct clnrest * clnrest = tal (cmd , struct clnrest );
14321432
1433- // TODO: check each field for validity
1433+ /* TODO: check each field for validity */
14341434
14351435 const jsmntok_t * pathtok = json_get_member (buffer , clnresttok , "path" );
1436- const jsmntok_t * methodtok = json_get_member (buffer , clnresttok , "method" );
1437- const jsmntok_t * contenttypetok = json_get_member (buffer , clnresttok , "content_type" );
1436+ const jsmntok_t * methodtok =
1437+ json_get_member (buffer , clnresttok , "method" );
1438+ const jsmntok_t * contenttypetok =
1439+ json_get_member (buffer , clnresttok , "content_type" );
14381440 const jsmntok_t * runetok = json_get_member (buffer , clnresttok , "rune" );
14391441 const jsmntok_t * pluginnametok = json_get_member (buffer , tok , "name" );
14401442
@@ -1452,7 +1454,8 @@ static const char *plugin_rpcmethod_clnrest_add(struct plugin *plugin,
14521454 }
14531455
14541456 if (contenttypetok ) {
1455- clnrest -> content_type = json_strdup (clnrest , buffer , contenttypetok );
1457+ clnrest -> content_type =
1458+ json_strdup (clnrest , buffer , contenttypetok );
14561459 } else {
14571460 clnrest -> content_type = "application/json" ;
14581461 }
0 commit comments