Skip to content

Commit f7abb34

Browse files
Rubocop fix. refs #63096
1 parent 7a1651d commit f7abb34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/controllers/employments_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def prefill_from_newest_employment
5454
end
5555

5656
def check_vacation_days_set
57-
if entry.needs_vacation_days_confirmation? && !params[:confirmed]
58-
@needs_confirmation = true
59-
throw :abort
60-
end
57+
return unless entry.needs_vacation_days_confirmation? && !params[:confirmed]
58+
59+
@needs_confirmation = true
60+
throw :abort
6161
end
6262

6363
def check_percent

0 commit comments

Comments
 (0)