From 1898670340aaf854fc7e027887b42099c7372d13 Mon Sep 17 00:00:00 2001 From: Claudio Costa Date: Wed, 21 Jul 2021 15:11:11 +0200 Subject: [PATCH] Fix outstanding linting issues --- app/email/helper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/email/helper_test.go b/app/email/helper_test.go index 217001f443..798ab5deac 100644 --- a/app/email/helper_test.go +++ b/app/email/helper_test.go @@ -155,7 +155,7 @@ func (th *TestHelper) InitBasic() *TestHelper { th.BasicUser2, _ = th.service.userService.GetUser(th.BasicUser2.Id) th.addUserToTeam(th.BasicTeam, th.BasicUser2) - th.BasicChannel = th.createChannel(th.BasicTeam, model.ChannelTypeOpen) + th.BasicChannel = th.createChannel(th.BasicTeam, string(model.ChannelTypeOpen)) th.addUserToChannel(th.BasicChannel, th.SystemAdminUser) th.addUserToChannel(th.BasicChannel, th.BasicUser) th.addUserToChannel(th.BasicChannel, th.BasicUser2) @@ -187,7 +187,7 @@ func (th *TestHelper) createChannel(team *model.Team, channelType string) *model channel := &model.Channel{ DisplayName: "dn_" + id, Name: "name_" + id, - Type: channelType, + Type: model.ChannelType(channelType), TeamId: team.Id, CreatorId: th.BasicUser.Id, }