mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Write if as a one-liner and avoid extra queries
This commit is contained in:
@@ -766,9 +766,7 @@ module Spree
|
||||
)
|
||||
customer.save
|
||||
|
||||
if customer.invalid?
|
||||
Bugsnag.notify(customer.errors.full_messages.join(", "))
|
||||
end
|
||||
Bugsnag.notify(customer.errors.full_messages.join(", ")) unless customer.persisted?
|
||||
end
|
||||
|
||||
def update_adjustment!(adjustment)
|
||||
|
||||
Reference in New Issue
Block a user