Don't use break in switch where it's not needed
This commit is contained in:
parent
96a09cf478
commit
e87ffec75c
@ -97,10 +97,8 @@ func (mq *MQ) run(callback func(NotificationType)) {
|
||||
switch string(msg[0]) {
|
||||
case "hashblock":
|
||||
nt = NotificationNewBlock
|
||||
break
|
||||
case "hashtx":
|
||||
nt = NotificationNewTx
|
||||
break
|
||||
default:
|
||||
nt = NotificationUnknown
|
||||
glog.Infof("MQ: NotificationUnknown %v", string(msg[0]))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user