diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-21 18:51:36 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:31:57 -0600 |
commit | 7ea641b6d0882fc782a7eb493daf8b66d076924b (patch) | |
tree | af94a52d4eae88b2bfd65f7c7f71a8e457defaad /app/workers | |
parent | b2da4623089e4c7c53526436bd7c0a8f516910a3 (diff) | |
download | gitlab-ce-7ea641b6d0882fc782a7eb493daf8b66d076924b.tar.gz |
Enable Style/ColonMethodCall
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/irker_worker.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/workers/irker_worker.rb b/app/workers/irker_worker.rb index 7e44b241743..c9658b3fe17 100644 --- a/app/workers/irker_worker.rb +++ b/app/workers/irker_worker.rb @@ -120,8 +120,8 @@ class IrkerWorker end def compare_url(data, repo_path) - sha1 = Commit::truncate_sha(data['before']) - sha2 = Commit::truncate_sha(data['after']) + sha1 = Commit.truncate_sha(data['before']) + sha2 = Commit.truncate_sha(data['after']) compare_url = "#{Gitlab.config.gitlab.url}/#{repo_path}/compare" compare_url += "/#{sha1}...#{sha2}" colorize_url compare_url @@ -129,7 +129,7 @@ class IrkerWorker def send_one_commit(project, hook_attrs, repo_name, branch) commit = commit_from_id project, hook_attrs['id'] - sha = colorize_sha Commit::truncate_sha(hook_attrs['id']) + sha = colorize_sha Commit.truncate_sha(hook_attrs['id']) author = hook_attrs['author']['name'] files = colorize_nb_files(files_count commit) title = commit.title |