summaryrefslogtreecommitdiff
path: root/lib/mattermost
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-03-01 11:00:37 +0000
committerSean McGivern <sean@gitlab.com>2017-03-01 15:28:10 +0000
commit811e598f607235d89e71d09d99538ee4dee3ffed (patch)
tree7608961ebb9c672836dd2e3f03eb56920e7b4ef3 /lib/mattermost
parent8dd097a91530e4b047c4b391f21047c7d29d310d (diff)
downloadgitlab-ce-811e598f607235d89e71d09d99538ee4dee3ffed.tar.gz
Enable and autocorrect the CustomErrorClass cop
Diffstat (limited to 'lib/mattermost')
-rw-r--r--lib/mattermost/client.rb2
-rw-r--r--lib/mattermost/error.rb2
-rw-r--r--lib/mattermost/session.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/mattermost/client.rb b/lib/mattermost/client.rb
index e55c0d6ac49..ad6df246091 100644
--- a/lib/mattermost/client.rb
+++ b/lib/mattermost/client.rb
@@ -1,5 +1,5 @@
module Mattermost
- class ClientError < Mattermost::Error; end
+ ClientError = Class.new(Mattermost::Error)
class Client
attr_reader :user
diff --git a/lib/mattermost/error.rb b/lib/mattermost/error.rb
index 014df175be0..dee6deb7974 100644
--- a/lib/mattermost/error.rb
+++ b/lib/mattermost/error.rb
@@ -1,3 +1,3 @@
module Mattermost
- class Error < StandardError; end
+ Error = Class.new(StandardError)
end
diff --git a/lib/mattermost/session.rb b/lib/mattermost/session.rb
index 377cb7b1021..5388966605d 100644
--- a/lib/mattermost/session.rb
+++ b/lib/mattermost/session.rb
@@ -5,7 +5,7 @@ module Mattermost
end
end
- class ConnectionError < Mattermost::Error; end
+ ConnectionError = Class.new(Mattermost::Error)
# This class' prime objective is to obtain a session token on a Mattermost
# instance with SSO configured where this GitLab instance is the provider.