Skip to content

Commit

Permalink
Fix Credo
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Apr 7, 2023
1 parent 4cec057 commit b8ce216
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/archethic/beacon_chain/summary_aggregate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,13 @@ defmodule Archethic.BeaconChain.SummaryAggregate do
|> Enum.map(&String.to_integer(&1, 16))
end)
|> Enum.zip()
|> Enum.map(fn x ->
|> Enum.map_join(fn x ->
x
|> Tuple.to_list()
|> Utils.median()
|> trunc()
|> Integer.to_string(16)
end)
|> Enum.join()

bandwidth_patch =
splitted_patches
Expand Down

0 comments on commit b8ce216

Please sign in to comment.