summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-22 11:25:50 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-23 09:32:22 -0600
commitf74ca33a32fbf810b377cf480e996fb383d8f400 (patch)
treeb49de25e505da3ee7ca44493c4934b1add025130 /app/models/commit.rb
parentf3a83dc8fc377357291fd25d333f5b5a3616fae9 (diff)
downloadgitlab-ce-f74ca33a32fbf810b377cf480e996fb383d8f400.tar.gz
Enable Style/ClassCheck
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 8f6179f183e..dc971e710ff 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -27,7 +27,7 @@ class Commit
class << self
def decorate(commits, project)
commits.map do |commit|
- if commit.kind_of?(Commit)
+ if commit.is_a?(Commit)
commit
else
self.new(commit, project)