From b4eda152abee69b9208d2cd2524a88a24b190db0 Mon Sep 17 00:00:00 2001 From: Klaus Zanders Date: Tue, 10 Dec 2024 16:16:17 +0100 Subject: [PATCH] make rubocop happy --- modules/costs/app/models/time_entry.rb | 2 +- .../costs/app/services/time_entries/set_attributes_service.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/costs/app/models/time_entry.rb b/modules/costs/app/models/time_entry.rb index 9984922099c6..501d8fad8f1d 100644 --- a/modules/costs/app/models/time_entry.rb +++ b/modules/costs/app/models/time_entry.rb @@ -125,7 +125,7 @@ def costs_visible_by?(usr) (user_id == usr.id && usr.allowed_in_project?(:view_own_hourly_rate, project)) end - def start_timestamp + def start_timestamp # rubocop:disable Metrics/AbcSize return nil if start_time.blank? return nil if time_zone.blank? return nil if spent_on.blank? diff --git a/modules/costs/app/services/time_entries/set_attributes_service.rb b/modules/costs/app/services/time_entries/set_attributes_service.rb index 08a513ba65e9..8742c1fb1d21 100644 --- a/modules/costs/app/services/time_entries/set_attributes_service.rb +++ b/modules/costs/app/services/time_entries/set_attributes_service.rb @@ -30,7 +30,7 @@ module TimeEntries class SetAttributesService < ::BaseServices::SetAttributes private - def set_attributes(_attributes) + def set_attributes(_attributes) # rubocop:disable Metrics/AbcSize model.attributes = params ##