Skip to content

Commit 5376064

Browse files
committed
Converted a case statement for Ruby 1.9.1 compatibility
1 parent db1c2c9 commit 5376064

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/git/object.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ def self.new(base, objectish, type = nil, is_tag = false)
264264
type ||= base.lib.object_type(objectish)
265265
klass =
266266
case type
267-
when /blob/: Blob
268-
when /commit/: Commit
269-
when /tree/: Tree
267+
when /blob/ then Blob
268+
when /commit/ then Commit
269+
when /tree/ then Tree
270270
end
271271
klass.new(base, objectish)
272272
end

0 commit comments

Comments
 (0)