Don't use break in switch where it's not needed

This commit is contained in:
Pavol Rusnak 2022-06-11 22:08:45 +02:00 committed by Martin
parent 96a09cf478
commit e87ffec75c

View File

@ -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]))