From c6d68a57ee676449049260a1b40c529010d8a9b4 Mon Sep 17 00:00:00 2001 From: slightlycyborg Date: Fri, 26 Jul 2019 14:37:56 +0000 Subject: [PATCH] dialyzer passes --- .../lib/block_scout_web/controllers/chain_controller.ex | 2 +- .../lib/explorer/chain/transaction/history/transaction_stats.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/block_scout_web/lib/block_scout_web/controllers/chain_controller.ex b/apps/block_scout_web/lib/block_scout_web/controllers/chain_controller.ex index 4854989b37..7c77d0bcc7 100644 --- a/apps/block_scout_web/lib/block_scout_web/controllers/chain_controller.ex +++ b/apps/block_scout_web/lib/block_scout_web/controllers/chain_controller.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 diff --git a/apps/explorer/lib/explorer/chain/transaction/history/transaction_stats.ex b/apps/explorer/lib/explorer/chain/transaction/history/transaction_stats.ex index 4077533976..742a61166d 100644 --- a/apps/explorer/lib/explorer/chain/transaction/history/transaction_stats.ex +++ b/apps/explorer/lib/explorer/chain/transaction/history/transaction_stats.ex @@ -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__]