summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-15 15:08:49 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-15 15:08:49 +0000
commit217b09114315a21ba53b95ee75410ffe600751c5 (patch)
treefb7429633d5caba21f0c5bc5de5eba8ecf0f0a4b /app/controllers/repositories_controller.rb
parent881c99f162b5b82c4df30fbdb22287e3d3591b0f (diff)
downloadredmine-217b09114315a21ba53b95ee75410ffe600751c5.tar.gz
redmine-217b09114315a21ba53b95ee75410ffe600751c5.zip
code cleanup: rubocop: fix Layout/LeadingCommentSpace in app/controllers/repositories_controller.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18473 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r--app/controllers/repositories_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb
index 1ebfb11be..6994eb294 100644
--- a/app/controllers/repositories_controller.rb
+++ b/app/controllers/repositories_controller.rb
@@ -379,7 +379,7 @@ class RepositoriesController < ApplicationController
end
def graph_commits_per_author(repository)
- #data
+ # data
stats = repository.stats_by_author
fields, commits_data, changes_data = [], [], []
stats.each do |name, hsh|
@@ -388,7 +388,7 @@ class RepositoriesController < ApplicationController
changes_data << hsh[:changes_count]
end
- #expand to 10 values if needed
+ # expand to 10 values if needed
fields = fields + [""]*(10 - fields.length) if fields.length<10
commits_data = commits_data + [0]*(10 - commits_data.length) if commits_data.length<10
changes_data = changes_data + [0]*(10 - changes_data.length) if changes_data.length<10