Skip to content

Commit

Permalink
make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
klaustopher committed Dec 10, 2024
1 parent cfdf0bd commit b4eda15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/costs/app/models/time_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

##
Expand Down

0 comments on commit b4eda15

Please sign in to comment.