Skip to content

Commit

Permalink
Remove double negation in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gjgd committed Jul 25, 2018
1 parent 79f8ec2 commit 2be7025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/TransmuteDPOS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contract TransmuteDPOS is TransmuteToken, RoundManager, ProviderPool {
}

function resignAsProvider(address _provider) internal {
require(providerStatus(_provider) != ProviderStatus.Unregistered);
require(providerStatus(_provider) == ProviderStatus.Registered);
removeProvider(_provider);
delete providers[_provider];
emit ProviderResigned(_provider);
Expand Down

0 comments on commit 2be7025

Please sign in to comment.