Skip to content

Commit

Permalink
Fix: missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
shafreeck committed Jan 23, 2019
1 parent 3c85ece commit 72d848a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func Auth(ctx *Context) {
namespace, err := Verify(token, serverauth)
if err != nil {
resp.ReplyError(ctx.Out, "ERR invalid password")
return
}
ctx.Client.Authenticated = true
metrics.GetMetrics().ConnectionOnlineGaugeVec.WithLabelValues(ctx.Client.Namespace).Dec()
metrics.GetMetrics().ConnectionOnlineGaugeVec.WithLabelValues(string(namespace)).Inc()
ctx.Client.Namespace = string(namespace)
Expand Down

0 comments on commit 72d848a

Please sign in to comment.