summaryrefslogtreecommitdiff
path: root/lib/gitlab/jira/http_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/jira/http_client.rb')
-rw-r--r--lib/gitlab/jira/http_client.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/jira/http_client.rb b/lib/gitlab/jira/http_client.rb
index f0b08bb6b6a..3e7659db240 100644
--- a/lib/gitlab/jira/http_client.rb
+++ b/lib/gitlab/jira/http_client.rb
@@ -12,7 +12,7 @@ module Gitlab
def request(*args)
result = make_request(*args)
- raise JIRA::HTTPError.new(result.response) unless result.response.is_a?(Net::HTTPSuccess)
+ raise JIRA::HTTPError, result.response unless result.response.is_a?(Net::HTTPSuccess)
result
end