mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
do not delete an empty set of preferences (#26172)
This commit is contained in:
parent
63f8991960
commit
7e419e98ee
@ -1076,6 +1076,10 @@ func (s *MmctlE2ETestSuite) cleanUpPreferences(userID string) {
|
|||||||
preferences, _, err := s.th.SystemAdminClient.GetPreferences(context.Background(), userID)
|
preferences, _, err := s.th.SystemAdminClient.GetPreferences(context.Background(), userID)
|
||||||
s.NoError(err)
|
s.NoError(err)
|
||||||
|
|
||||||
|
if len(preferences) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
_, err = s.th.SystemAdminClient.DeletePreferences(context.Background(), userID, preferences)
|
_, err = s.th.SystemAdminClient.DeletePreferences(context.Background(), userID, preferences)
|
||||||
s.NoError(err)
|
s.NoError(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user