1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

style(rubocop): Lint/UselessAssignment

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 17:16:45 +00:00
الأصل 25d7d66b47
التزام 7590a46234
12 ملفات معدلة مع 18 إضافات و20 حذوفات

عرض الملف

@@ -202,7 +202,7 @@ class Route < ApplicationRecord
if route = Route.includes(:domain).where(domains: { name: domain.name }, name: name).where.not(id: id).first
errors.add :name, "is configured on the #{route.server.full_permalink} mail server"
end
elsif route = Route.where(name: "__returnpath__").where.not(id: id).exists?
elsif Route.where(name: "__returnpath__").where.not(id: id).exists?
errors.add :base, "A return path route already exists for this server"
end
end