From ac74066f0e4f3d62f2d4645c3fa34b88c13958d1 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 19 Sep 2017 18:31:35 -0500 Subject: remove einterface gets (#7455) --- app/webhook.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/webhook.go') diff --git a/app/webhook.go b/app/webhook.go index 61b8b4d1a..04887f203 100644 --- a/app/webhook.go +++ b/app/webhook.go @@ -11,7 +11,6 @@ import ( "unicode/utf8" l4g "github.com/alecthomas/log4go" - "github.com/mattermost/mattermost-server/einterfaces" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/store" "github.com/mattermost/mattermost-server/utils" @@ -126,7 +125,7 @@ func (a *App) CreateWebhookPost(userId string, channel *model.Channel, text, ove post := &model.Post{UserId: userId, ChannelId: channel.Id, Message: text, Type: postType} post.AddProp("from_webhook", "true") - if metrics := einterfaces.GetMetricsInterface(); metrics != nil { + if metrics := a.Metrics; metrics != nil { metrics.IncrementWebhookPost() } -- cgit v1.2.3-1-g7c22