Skip to content

Commit

Permalink
[MM-283] Fix lint error (#466)
Browse files Browse the repository at this point in the history
- Error: SA1019: gitLabAPI.OwnerPermission is deprecated: Renamed to OwnerPermissions. (staticcheck)
  • Loading branch information
raghavaggarwal2308 authored Mar 11, 2024
1 parent 54a9c46 commit 53b10f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func TestListWebhookCommand(t *testing.T) {
func getTestPlugin(t *testing.T, mockCtrl *gomock.Controller, hooks []*gitlab.WebhookInfo, mattermostURL string, projectHookErr error, getProjectErr error, mockGitlab, noAccess bool) *Plugin {
p := new(Plugin)

accessLevel := gitLabAPI.OwnerPermission
accessLevel := gitLabAPI.OwnerPermissions
if noAccess {
accessLevel = gitLabAPI.GuestPermissions
}
Expand Down

0 comments on commit 53b10f3

Please sign in to comment.