Sprinkle frozen string literal & Indentation Fix (#150)
* Avoid extra string alocation as join will always return string * Fix indentation * Sprinkle frozen string literal true
This commit is contained in:
committed by
Sojan Jose
parent
59e9fbd336
commit
a1452d7d89
@@ -1,3 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AccountBuilder
|
||||
include CustomExceptions::Account
|
||||
|
||||
@@ -59,7 +61,6 @@ class AccountBuilder
|
||||
else
|
||||
raise UserErrors.new({errors: @user.errors})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def email_to_name(email)
|
||||
@@ -67,5 +68,4 @@ class AccountBuilder
|
||||
name.split(".").map {|n| n.capitalize }.join(" ")
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user