مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-01-19 22:29:47 +00:00
style(rubocop): Style/IdenticalConditionalBranches
هذا الالتزام موجود في:
@@ -18,18 +18,16 @@ module Postal
|
||||
user.password = cli.ask("Initial Password".ljust(20, " ") + ": ") { |value| value.echo = "*" }
|
||||
|
||||
block.call(user) if block_given?
|
||||
puts
|
||||
if user.save
|
||||
puts
|
||||
puts "User has been created with e-mail address \e[32m#{user.email_address}\e[0m"
|
||||
puts
|
||||
else
|
||||
puts
|
||||
puts "\e[31mFailed to create user\e[0m"
|
||||
for error in user.errors.full_messages
|
||||
puts " * #{error}"
|
||||
end
|
||||
puts
|
||||
end
|
||||
puts
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم