Problem: break statements are redundant in switch statement
Solution: remove break statements
This commit is contained in:
parent
ec8b2805f5
commit
bfe52d0f2a
|
@ -624,27 +624,22 @@ func (b *memoryBackend) channelAddItemWithMatcher(channel string, item microsub.
|
|||
if len(item.RepostOf) > 0 {
|
||||
return nil
|
||||
}
|
||||
break
|
||||
case "like":
|
||||
if len(item.LikeOf) > 0 {
|
||||
return nil
|
||||
}
|
||||
break
|
||||
case "bookmark":
|
||||
if len(item.BookmarkOf) > 0 {
|
||||
return nil
|
||||
}
|
||||
break
|
||||
case "reply":
|
||||
if len(item.InReplyTo) > 0 {
|
||||
return nil
|
||||
}
|
||||
break
|
||||
case "checkin":
|
||||
if item.Checkin != nil {
|
||||
return nil
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user