Problem: break statements are redundant in switch statement

Solution: remove break statements
This commit is contained in:
Peter Stuifzand 2021-11-20 21:38:06 +01:00
parent ec8b2805f5
commit bfe52d0f2a
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -624,27 +624,22 @@ func (b *memoryBackend) channelAddItemWithMatcher(channel string, item microsub.
if len(item.RepostOf) > 0 { if len(item.RepostOf) > 0 {
return nil return nil
} }
break
case "like": case "like":
if len(item.LikeOf) > 0 { if len(item.LikeOf) > 0 {
return nil return nil
} }
break
case "bookmark": case "bookmark":
if len(item.BookmarkOf) > 0 { if len(item.BookmarkOf) > 0 {
return nil return nil
} }
break
case "reply": case "reply":
if len(item.InReplyTo) > 0 { if len(item.InReplyTo) > 0 {
return nil return nil
} }
break
case "checkin": case "checkin":
if item.Checkin != nil { if item.Checkin != nil {
return nil return nil
} }
break
} }
} }
} }