From 7978c42e9037e375ce8375ff65f986291d0e7af4 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Mon, 14 May 2018 11:37:24 -0500 Subject: [PATCH] Compact aliases together --- apps/explorer/lib/explorer/indexer/block_fetcher.ex | 2 -- apps/explorer/test/support/data_case.ex | 4 ++-- apps/explorer_web/test/support/feature_case.ex | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/explorer/lib/explorer/indexer/block_fetcher.ex b/apps/explorer/lib/explorer/indexer/block_fetcher.ex index 4a9bf92ea9..3af605b174 100644 --- a/apps/explorer/lib/explorer/indexer/block_fetcher.ex +++ b/apps/explorer/lib/explorer/indexer/block_fetcher.ex @@ -8,9 +8,7 @@ defmodule Explorer.Indexer.BlockFetcher do require Logger alias Explorer.{Chain, Indexer, JSONRPC} - alias Explorer.Indexer.{AddressFetcher, Sequence} - alias Explorer.JSONRPC.Transactions # dialyzer thinks that Logger.debug functions always have no_local_return diff --git a/apps/explorer/test/support/data_case.ex b/apps/explorer/test/support/data_case.ex index 3cf7d2a349..27e094626a 100644 --- a/apps/explorer/test/support/data_case.ex +++ b/apps/explorer/test/support/data_case.ex @@ -16,8 +16,6 @@ defmodule Explorer.DataCase do using do quote do - alias Explorer.Repo - use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney import Ecto @@ -25,6 +23,8 @@ defmodule Explorer.DataCase do import Ecto.Query import Explorer.DataCase import Explorer.Factory + + alias Explorer.Repo end end diff --git a/apps/explorer_web/test/support/feature_case.ex b/apps/explorer_web/test/support/feature_case.ex index 679c0d1022..4c5b91a0b2 100644 --- a/apps/explorer_web/test/support/feature_case.ex +++ b/apps/explorer_web/test/support/feature_case.ex @@ -8,14 +8,14 @@ defmodule ExplorerWeb.FeatureCase do quote do use Wallaby.DSL - alias Explorer.Repo - import Ecto import Ecto.Changeset import Ecto.Query - import ExplorerWeb.Router.Helpers import Explorer.Factory import ExplorerWeb.Factory + import ExplorerWeb.Router.Helpers + + alias Explorer.Repo end end