Prohibit variable shadowing (#10177)
* Prohibit variable shadowing * Fix outstanding shadowed variables
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
cd30a1f242
Коммит
0c981aa010
@@ -750,9 +750,9 @@ func TestPinPost(t *testing.T) {
|
||||
|
||||
channel, err := th.App.GetChannelByName("town-square", th.BasicTeam.Id, true)
|
||||
assert.Nil(t, err)
|
||||
post := th.CreatePostWithClient(th.SystemAdminClient, channel)
|
||||
adminPost := th.CreatePostWithClient(th.SystemAdminClient, channel)
|
||||
|
||||
_, resp := Client.PinPost(post.Id)
|
||||
_, resp = Client.PinPost(adminPost.Id)
|
||||
CheckForbiddenStatus(t, resp)
|
||||
})
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user