Commit 1b03c580 authored by Lin Jen-Shin's avatar Lin Jen-Shin

We're checking return value rather than rescuing exceptions

parent 5f887344
...@@ -56,7 +56,7 @@ module Ci ...@@ -56,7 +56,7 @@ module Ci
def assign_to(project, current_user = nil) def assign_to(project, current_user = nil)
self.is_shared = false if shared? self.is_shared = false if shared?
self.save self.save
project.runner_projects.create!(runner_id: self.id) project.runner_projects.create(runner_id: self.id)
end end
def display_name def display_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment