1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

remove rebocop disable

This commit is contained in:
Du Peng 2020-02-03 10:53:54 +01:00
parent 05073d5a28
commit c3965b28cf

View File

@ -159,14 +159,14 @@ class EventService
)
begin
results.push status: !!e.update(e_params.permit!), event: e # rubocop:disable Style/DoubleNegation
rescue => err
results.push status: false, event: e, error: err.try(:record).try(:class).try(:name), message: err.message # rubocop:disable Style/DoubleNegation
rescue StandardError => err
results.push status: false, event: e, error: err.try(:record).try(:class).try(:name), message: err.message
end
end
begin
results.push status: !!event.update(event_params), event: event # rubocop:disable Style/DoubleNegation
rescue => err
results.push status: false, event: event, error: err.try(:record).try(:class).try(:name), message: err.message # rubocop:disable Style/DoubleNegation
rescue StandardError => err
results.push status: false, event: event, error: err.try(:record).try(:class).try(:name), message: err.message
end
results
end