We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a1651d commit f7abb34Copy full SHA for f7abb34
app/controllers/employments_controller.rb
@@ -54,10 +54,10 @@ def prefill_from_newest_employment
54
end
55
56
def check_vacation_days_set
57
- if entry.needs_vacation_days_confirmation? && !params[:confirmed]
58
- @needs_confirmation = true
59
- throw :abort
60
- end
+ return unless entry.needs_vacation_days_confirmation? && !params[:confirmed]
+
+ @needs_confirmation = true
+ throw :abort
61
62
63
def check_percent
0 commit comments