Skip to content

Commit fe5f214

Browse files
committed
fixed linters
1 parent fd757b7 commit fe5f214

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

apps/hellgate/src/hg_invoice_payment.erl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,10 +2842,11 @@ construct_proxy_invoice(
28422842
}.
28432843

28442844
construct_proxy_shop(
2845-
{ShopID, Shop = #domain_ShopConfig{
2846-
location = Location,
2847-
category = ShopCategoryRef
2848-
}}
2845+
{ShopID,
2846+
Shop = #domain_ShopConfig{
2847+
location = Location,
2848+
category = ShopCategoryRef
2849+
}}
28492850
) ->
28502851
ShopCategory = hg_domain:get({category, ShopCategoryRef}),
28512852
#proxy_provider_Shop{

apps/hellgate/src/hg_invoice_payment_refund.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ process_refund_cashflow(Refund) ->
278278
Shop = get_injected_shop(Refund),
279279
hold_refund_limits(Refund),
280280

281-
#{{merchant, settlement} := SettlementID} = hg_accounting:collect_merchant_account_map(PartyID, {ShopID, Shop}, #{}),
281+
#{{merchant, settlement} := SettlementID} = hg_accounting:collect_merchant_account_map(
282+
PartyID, {ShopID, Shop}, #{}
283+
),
282284
_ = prepare_refund_cashflow(Refund),
283285
% NOTE we assume that posting involving merchant settlement account MUST be present in the cashflow
284286
#{min_available_amount := AvailableAmount} = hg_accounting:get_balance(SettlementID),

apps/hellgate/src/hg_invoice_template.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ get_party(PartyID) ->
119119
Party.
120120

121121
get_shop(ShopID, Party) ->
122-
{ShopID, Shop} = hg_invoice_utils:assert_shop_exists(hg_party:get_shop(ShopID, Party, hg_party:get_party_revision())),
122+
{ShopID, Shop} = hg_invoice_utils:assert_shop_exists(
123+
hg_party:get_shop(ShopID, Party, hg_party:get_party_revision())
124+
),
123125
_ = hg_invoice_utils:assert_shop_operable(Shop),
124126
Shop.
125127

apps/hellgate/src/hg_invoice_utils.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ get_shop_currency(#domain_ShopConfig{account = #domain_ShopAccount{currency = Cu
133133
Currency.
134134

135135
-spec get_shop_account(shop()) -> {account_id(), account_id()}.
136-
get_shop_account(#domain_ShopConfig{account = #domain_ShopAccount{settlement = SettlementID, guarantee = GuaranteeID}}) ->
136+
get_shop_account(#domain_ShopConfig{
137+
account = #domain_ShopAccount{settlement = SettlementID, guarantee = GuaranteeID}
138+
}) ->
137139
{SettlementID, GuaranteeID}.
138140

139141
-spec assert_party_unblocked(party()) -> true | no_return().

apps/hellgate/src/hg_limiter.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ hold_shop_limits(TurnoverLimits, PartyID, ShopID, Invoice, Payment) ->
176176
Context = gen_limit_shop_context(Invoice, Payment),
177177
{LegacyTurnoverLimits, BatchTurnoverLimits} = split_turnover_limits_by_available_limiter_api(TurnoverLimits),
178178
ok = legacy_hold_shop_limits(Context, LegacyTurnoverLimits, PartyID, ShopID, Invoice, Payment),
179-
ok = batch_hold_limits(Context, BatchTurnoverLimits, make_shop_operation_segments(PartyID, ShopID, Invoice, Payment)).
179+
ok = batch_hold_limits(
180+
Context, BatchTurnoverLimits, make_shop_operation_segments(PartyID, ShopID, Invoice, Payment)
181+
).
180182

181183
legacy_hold_shop_limits(Context, TurnoverLimits, PartyID, ShopID, Invoice, Payment) ->
182184
ChangeIDs = [construct_shop_change_id(PartyID, ShopID, Invoice, Payment)],

0 commit comments

Comments
 (0)