Skip to content

Commit

Permalink
fix raise to only happen on error
Browse files Browse the repository at this point in the history
  • Loading branch information
apinstein committed Jun 4, 2009
1 parent 6dc8378 commit 93a0d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracker_github_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
@num_commits = 0
push = JSON.parse(params[:payload])
tracker_info = PROJECTS[push['repository']['url']]
raise "GitHub Webook triggerd for repo: #{push['repository']['url']}; no matching github_url in config.yml"
raise "GitHub Webook triggerd for repo: #{push['repository']['url']}; no matching github_url in config.yml" if tracker_info == nil
push['commits'].each { |commit| process_commit(tracker_info, commit) }
"Processed #{@num_commits} commits for stories"
end
Expand Down

0 comments on commit 93a0d5e

Please sign in to comment.