if block ends with a return statement, so drop this else and outdent its block

pull/3179/head
songgeng87 5 years ago committed by Leo Chen
parent 69f3ae3e29
commit 8c2bd6db56
  1. 3
      node/node.go

@ -294,9 +294,8 @@ func (node *Node) AddPendingTransaction(newTx *types.Transaction) error {
node.tryBroadcast(newTx)
}
return err
} else {
return errors.New("shard do not match")
}
return errors.New("shard do not match")
}
// AddPendingReceipts adds one receipt message to pending list.

Loading…
Cancel
Save