Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Remove unnecessary early declaration from ClientTest::setChainParams
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Nov 14, 2019
1 parent b9a0386 commit 9b67ec5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libethereum/ClientTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ ClientTest::~ClientTest()

void ClientTest::setChainParams(string const& _genesis)
{
ChainParams params;
try
{
params = ChainParams{_genesis};
ChainParams const params{_genesis};
if (params.sealEngineName != NoProof::name() && params.sealEngineName != Ethash::name() &&
params.sealEngineName != NoReward::name())
BOOST_THROW_EXCEPTION(
Expand Down

0 comments on commit 9b67ec5

Please sign in to comment.