diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-05-07 14:15:27 +0800 |
---|---|---|
committer | Mission Liao <mission.liao@dexon.org> | 2019-05-07 15:09:40 +0800 |
commit | 45976143c39aa8f4856aec2b098620a1adc7177c (patch) | |
tree | 2f790ed1c45541847b7ff084f314b4ba8bcef249 | |
parent | 0da49206eab0de7ee7a4c202519ab3aab76fced4 (diff) | |
download | dexon-45976143c39aa8f4856aec2b098620a1adc7177c.tar.gz dexon-45976143c39aa8f4856aec2b098620a1adc7177c.tar.zst dexon-45976143c39aa8f4856aec2b098620a1adc7177c.zip |
Fix lint error: omit comparison to bool constant
-rw-r--r-- | dex/consensus/core/configuration-chain.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/consensus/core/configuration-chain.go b/dex/consensus/core/configuration-chain.go index b1aa1f86a..55458858d 100644 --- a/dex/consensus/core/configuration-chain.go +++ b/dex/consensus/core/configuration-chain.go @@ -151,7 +151,7 @@ func (cc *configurationChain) abortDKGNoLock( // Wait for current running DKG protocol aborting. for { cc.dkgLock.Lock() - if cc.dkgRunning == false { + if !cc.dkgRunning { cc.dkg = nil break } |