Skip to content

Commit 53b10f3

Browse files
author
Raghav Aggarwal
authored
[MM-283] Fix lint error (#466)
- Error: SA1019: gitLabAPI.OwnerPermission is deprecated: Renamed to OwnerPermissions. (staticcheck)
1 parent 54a9c46 commit 53b10f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func TestListWebhookCommand(t *testing.T) {
252252
func getTestPlugin(t *testing.T, mockCtrl *gomock.Controller, hooks []*gitlab.WebhookInfo, mattermostURL string, projectHookErr error, getProjectErr error, mockGitlab, noAccess bool) *Plugin {
253253
p := new(Plugin)
254254

255-
accessLevel := gitLabAPI.OwnerPermission
255+
accessLevel := gitLabAPI.OwnerPermissions
256256
if noAccess {
257257
accessLevel = gitLabAPI.GuestPermissions
258258
}

0 commit comments

Comments
 (0)