aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-05-07 14:14:47 +0800
committerMission Liao <mission.liao@dexon.org>2019-05-07 15:09:40 +0800
commit0da49206eab0de7ee7a4c202519ab3aab76fced4 (patch)
tree8e22227091afd3fd70ceb8108182fa06db60a20e
parent3f5a1c1c3d21c9316dedab08b3aa6895b647714e (diff)
downloaddexon-0da49206eab0de7ee7a4c202519ab3aab76fced4.tar.gz
dexon-0da49206eab0de7ee7a4c202519ab3aab76fced4.tar.zst
dexon-0da49206eab0de7ee7a4c202519ab3aab76fced4.zip
Fix lint error: already a string
-rw-r--r--dex/consensus/core/test/state-change-request.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/dex/consensus/core/test/state-change-request.go b/dex/consensus/core/test/state-change-request.go
index a2d02709a..350cb0d3a 100644
--- a/dex/consensus/core/test/state-change-request.go
+++ b/dex/consensus/core/test/state-change-request.go
@@ -194,8 +194,7 @@ func (req *StateChangeRequest) String() (ret string) {
case StateChangeNotarySetSize:
ret += fmt.Sprintf("%v", req.Payload.(uint32))
case StateAddNode:
- ret += fmt.Sprintf(
- "%s", types.NewNodeID(req.Payload.(crypto.PublicKey)).String()[:6])
+ ret += types.NewNodeID(req.Payload.(crypto.PublicKey)).String()[:6]
default:
panic(fmt.Errorf(
"attempting to dump unknown type of state change request: %v",