diff options
author | Chris <ccbrown112@gmail.com> | 2017-10-30 11:57:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 11:57:24 -0500 |
commit | c5e8cb25caa39ed018ede5270e1566e8f7448396 (patch) | |
tree | 80f9f8957d4ff8458ecf9631135c916df25544bd /app/web_hub.go | |
parent | 63df41b91110bac06baffef87fe0c1952b47ac93 (diff) | |
download | chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.gz chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.bz2 chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.zip |
simplify things (#7735)
Diffstat (limited to 'app/web_hub.go')
-rw-r--r-- | app/web_hub.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/web_hub.go b/app/web_hub.go index 0473b29f9..c8c650246 100644 --- a/app/web_hub.go +++ b/app/web_hub.go @@ -98,7 +98,7 @@ func (a *App) HubStart() { splits := strings.Split(output, "goroutine ") for _, part := range splits { - if strings.Index(part, fmt.Sprintf("%v", hub.goroutineId)) > -1 { + if strings.Contains(part, fmt.Sprintf("%v", hub.goroutineId)) { l4g.Error("Trace for possible deadlock goroutine %v", part) } } |