aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-05-07 14:09:15 +0800
committerMission Liao <mission.liao@dexon.org>2019-05-07 15:09:40 +0800
commit3f5a1c1c3d21c9316dedab08b3aa6895b647714e (patch)
tree56261af4cfa90956b95a412afd52e4c627dcf259
parent97e48e34481ffe331de8a8d42a223d5a373447e3 (diff)
downloaddexon-3f5a1c1c3d21c9316dedab08b3aa6895b647714e.tar.gz
dexon-3f5a1c1c3d21c9316dedab08b3aa6895b647714e.tar.zst
dexon-3f5a1c1c3d21c9316dedab08b3aa6895b647714e.zip
FIx lint error: redundant return statement
-rw-r--r--dex/consensus/core/agreement-mgr.go1
-rw-r--r--dex/consensus/core/syncer/consensus.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/dex/consensus/core/agreement-mgr.go b/dex/consensus/core/agreement-mgr.go
index 21651c2d3..015fd6863 100644
--- a/dex/consensus/core/agreement-mgr.go
+++ b/dex/consensus/core/agreement-mgr.go
@@ -195,7 +195,6 @@ func (mgr *agreementMgr) prepare() {
"round", round, "signer", signer != nil, "npks", npk != nil)
}
}
- return
}
func (mgr *agreementMgr) run() {
diff --git a/dex/consensus/core/syncer/consensus.go b/dex/consensus/core/syncer/consensus.go
index 7f5737a98..56a055faa 100644
--- a/dex/consensus/core/syncer/consensus.go
+++ b/dex/consensus/core/syncer/consensus.go
@@ -455,7 +455,6 @@ func (con *Consensus) stopBuffering() {
con.logger.Trace("Stop syncer agreement modules")
con.stopAgreement()
con.logger.Trace("Syncer stopped")
- return
}
// isEmptyBlock checks if a block is an empty block by both its hash and parent