Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions truffle/src/main/ruby/core/type.rb
Original file line number Diff line number Diff line change
@@ -671,8 +671,7 @@ def self.try_convert_to_encoding(obj)

def self.coerce_to_path(obj)
if object_kind_of?(obj, String)
# TODO (nirvdrum 02-Jun-16) Revisit when we have more uniform handling of path separator chars.
obj.gsub('\\', '/')
obj
else
if object_respond_to? obj, :to_path
obj = obj.to_path

0 comments on commit 6dda94c

Please sign in to comment.