aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-05-07 14:15:27 +0800
committerMission Liao <mission.liao@dexon.org>2019-05-07 15:09:40 +0800
commit45976143c39aa8f4856aec2b098620a1adc7177c (patch)
tree2f790ed1c45541847b7ff084f314b4ba8bcef249
parent0da49206eab0de7ee7a4c202519ab3aab76fced4 (diff)
downloaddexon-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.go2
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
}