Skip to content

Commit

Permalink
Stop memoizing max_hours
Browse files Browse the repository at this point in the history
This value is already memoized in the training allowance object. There's
no need to double memoize it.
  • Loading branch information
ollietreend committed Oct 7, 2024
1 parent 0f12d93 commit dbc119d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/claims/claim/mentor_training_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def success_path
end

def max_hours
@max_hours ||= training_allowance.remaining_hours
training_allowance.remaining_hours
end

def training_allowance
Expand Down

0 comments on commit dbc119d

Please sign in to comment.