Skip to content

Commit

Permalink
Fixed errcheck issues in server/channels/app/group_test.go (mattermos…
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryakoste authored Oct 25, 2024
1 parent 2d4f7ae commit 323e330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion server/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ issues:
channels/app/file_helper_test.go|\
channels/app/file_info.go|\
channels/app/file_test.go|\
channels/app/group_test.go|\
channels/app/helper_test.go|\
channels/app/imaging/decode.go|\
channels/app/imaging/decode_test.go|\
Expand Down
3 changes: 2 additions & 1 deletion server/channels/app/group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ func TestUserIsInAdminRoleGroup(t *testing.T) {
require.True(t, actual)

// delete the syncable, should be false again
th.App.DeleteGroupSyncable(group2.Id, th.BasicTeam.Id, model.GroupSyncableTypeTeam)
_, appErr := th.App.DeleteGroupSyncable(group2.Id, th.BasicTeam.Id, model.GroupSyncableTypeTeam)
require.Nil(t, appErr)
actual, err = th.App.UserIsInAdminRoleGroup(th.BasicUser.Id, th.BasicTeam.Id, model.GroupSyncableTypeTeam)
require.Nil(t, err)
require.False(t, actual)
Expand Down

0 comments on commit 323e330

Please sign in to comment.