Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Oct 13, 2023
1 parent c55063a commit ccbf147
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/apps/js_generic/js_generic_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ namespace ccfapp
// Call exported function
auto request = create_request_obj(endpoint, endpoint_ctx, ctx);

auto val = ctx.call_with_rt_options(export_func, {request}, &endpoint_ctx.tx);
auto val =
ctx.call_with_rt_options(export_func, {request}, &endpoint_ctx.tx);

if (JS_IsException(val))
{
Expand Down
3 changes: 1 addition & 2 deletions src/js/wrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ namespace ccf::js
}

JSWrappedValue Context::inner_call(
const JSWrappedValue& f,
const std::vector<js::JSWrappedValue>& argv)
const JSWrappedValue& f, const std::vector<js::JSWrappedValue>& argv)
{
std::vector<JSValue> argvn;
argvn.reserve(argv.size());
Expand Down
3 changes: 1 addition & 2 deletions src/js/wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,7 @@ namespace ccf::js
kv::Tx* tx);

JSWrappedValue inner_call(
const JSWrappedValue& f,
const std::vector<js::JSWrappedValue>& argv);
const JSWrappedValue& f, const std::vector<js::JSWrappedValue>& argv);

JSWrappedValue parse_json(const nlohmann::json& j) const
{
Expand Down
4 changes: 2 additions & 2 deletions src/node/gov/handlers/proposals.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ namespace ccf::gov::endpoints
proposal_body = cose_ident.content;
auto proposal_arg = context.new_string_len(
(const char*)proposal_body.data(), proposal_body.size());
auto validate_result =
context.call_with_rt_options(validate_func, {proposal_arg}, &ctx.tx);
auto validate_result = context.call_with_rt_options(
validate_func, {proposal_arg}, &ctx.tx);

// Handle error cases of validation
{
Expand Down
6 changes: 4 additions & 2 deletions src/node/rpc/member_frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ namespace ccf
apply_js_context.new_string_len(
proposal_id.c_str(), proposal_id.size())};

auto apply_val = apply_js_context.call_with_rt_options(apply_func, apply_argv, &tx);
auto apply_val = apply_js_context.call_with_rt_options(
apply_func, apply_argv, &tx);

if (JS_IsException(apply_val))
{
Expand Down Expand Up @@ -1163,7 +1164,8 @@ namespace ccf
auto body_len = proposal_body.size();

auto proposal = context.new_string_len(body, body_len);
auto val = context.call_with_rt_options(validate_func, {proposal}, &ctx.tx);
auto val =
context.call_with_rt_options(validate_func, {proposal}, &ctx.tx);

if (JS_IsException(val))
{
Expand Down

0 comments on commit ccbf147

Please sign in to comment.