From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- app/web_hub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/web_hub.go') 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) } } -- cgit v1.2.3-1-g7c22