dialyzer passes

pull/2404/head
slightlycyborg 5 years ago
parent ed914760f9
commit c6d68a57ee
  1. 2
      apps/block_scout_web/lib/block_scout_web/controllers/chain_controller.ex
  2. 2
      apps/explorer/lib/explorer/chain/transaction/history/transaction_stats.ex

@ -57,7 +57,7 @@ defmodule BlockScoutWeb.ChainController do
transaction_stats = TransactionStats.by_date_range(stats_scale.earliest, stats_scale.latest)
# Need datapoint for legend if none currently available.
if Enum.empty?(transaction_stats) == 0 do
if Enum.empty?(transaction_stats) do
[%{number_of_transactions: 0}]
else
transaction_stats

@ -21,7 +21,7 @@ defmodule Explorer.Chain.Transaction.History.TransactionStats do
"""
@type t :: %__MODULE__{
date: Date.t(),
number_of_transactions: Integer.t()
number_of_transactions: integer()
}
@spec by_date_range(Date.t(), Date.t()) :: [__MODULE__]

Loading…
Cancel
Save