Autocorrect new rubocop offenses

This commit is contained in:
Henne Vogelsang 2025-08-12 16:44:20 +02:00
parent deda3d4273
commit 988b3bf689
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
24 changed files with 48 additions and 41 deletions

View file

@ -69,7 +69,7 @@ module Admin
end
# The conference must have at least 1 organizer
if @role.name == 'organizer' && state == 'false' && @role.users.count == 1
if @role.name == 'organizer' && state == 'false' && @role.users.one?
redirect_to admin_conference_role_path(@conference.short_title, @role.name),
error: 'The conference must have at least 1 organizer!'
return