Skip to content
This repository was archived by the owner on Apr 4, 2020. It is now read-only.

Commit 30ee299

Browse files
jrafanieeggmaster
authored andcommitted
Ruby 1.9: No more when: in case blocks, use ; or newlines instead. Used this command to find these: git grep -E "when [a-zA-Z0-9_]:"
BugzID:12306 git-svn-id: http://miq-ubuntusub.manageiq.com/svn/svnrepos/Manageiq/trunk@32199 3c68ef56-dcc3-11dc-9475-a42b84ecc76f
1 parent fc4a176 commit 30ee299

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/txt2html

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class Fixnum
2222
return 'th' if (10..19).include?(self % 100)
2323
# others
2424
case self % 10
25-
when 1: return 'st'
26-
when 2: return 'nd'
27-
when 3: return 'rd'
25+
when 1; return 'st'
26+
when 2; return 'nd'
27+
when 3; return 'rd'
2828
else return 'th'
2929
end
3030
end

0 commit comments

Comments
 (0)