summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 21:01:30 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-04-06 23:46:59 +0900
commit9441c01484e668892d06f387fc0f85fe2d4ff4b4 (patch)
treefec79de1f9a80dcb5db8171a52bd4558092c283e /app/models
parentfff6afbad1180cb39fd0a8d9032de91397ba6471 (diff)
downloadgitlab-ce-9441c01484e668892d06f387fc0f85fe2d4ff4b4.tar.gz
Fix rubocop
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/trigger_schedule.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/trigger_schedule.rb b/app/models/ci/trigger_schedule.rb
index 256e609f0d1..10ea381ee31 100644
--- a/app/models/ci/trigger_schedule.rb
+++ b/app/models/ci/trigger_schedule.rb
@@ -23,7 +23,7 @@ module Ci
def schedule_next_run!
save! # with set_next_run_at
- rescue ActiveRecord::RecordInvalid => invalid
+ rescue ActiveRecord::RecordInvalid
update_attribute(:next_run_at, nil) # update without validation
end
end