style: formalize preference for if/unless in rubocop (#2816)

This commit is contained in:
Mike Dalessio
2026-04-09 11:14:52 -04:00
committed by GitHub
parent d562e79440
commit 3a30d7796f
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ module User::Avatar
private
def avatar_content_type_allowed
if !ALLOWED_AVATAR_CONTENT_TYPES.include?(avatar.content_type)
unless ALLOWED_AVATAR_CONTENT_TYPES.include?(avatar.content_type)
errors.add(:avatar, "must be a JPEG, PNG, GIF, or WebP image")
end
end