summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-06 13:00:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-06 13:00:21 +0000
commit475daf62f17b827768df5c08bec94667400f457d (patch)
treeb42b668faba1b82566b76731787f7fb0c8b86f3a /app/models
parent6a04a9a44325aeca2f67614cee30ed9d3d4c0081 (diff)
downloadredmine-475daf62f17b827768df5c08bec94667400f457d.tar.gz
redmine-475daf62f17b827768df5c08bec94667400f457d.zip
use "do end" instead of {} at app/models/wiki_page.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20274 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/wiki_page.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index 9ac19971f..02b7044da 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -328,10 +328,10 @@ class WikiAnnotate
break unless @lines.detect { |line| line[0].nil? }
current = current.previous
end
- @lines.each { |line|
+ @lines.each do |line|
line[0] ||= current.version
# if the last known version is > 1 (eg. history was cleared), we don't know the author
line[1] ||= current.author if current.version == 1
- }
+ end
end
end