Skip to content

Commit

Permalink
an actual bug caught by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Dec 27, 2020
1 parent 7726f18 commit a703fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2422,7 +2422,7 @@ func (t *Topic) replySetTags(sess *Session, asUid types.Uid, msg *ClientComMessa

now := types.TimeNow()

if _, err := t.verifyChannelAccess(msg.Original); err != nil {
if _, err = t.verifyChannelAccess(msg.Original); err != nil {
// User should not be able to address non-channel topic as channel.
resp = ErrNotFoundReply(msg, now)
err = types.ErrNotFound
Expand Down

0 comments on commit a703fe7

Please sign in to comment.