Skip to content

Commit

Permalink
[UUIDGenerator] Handle Fixnum, bools, etc gracefully
Browse files Browse the repository at this point in the history
Closes #286
  • Loading branch information
segiddins committed Jul 26, 2015
1 parent 17f8610 commit e8391bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/xcodeproj/project/uuid_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ def tree_hash_to_path(object, depth = 4)
object.map do |value|
tree_hash_to_path(value, depth - 1)
end.join(',')
when String
object
else
raise "[Xcodeproj] Unrecognized object `#{hash}` in #tree_hash_to_path"
object.to_s
end
end
end
Expand Down

0 comments on commit e8391bc

Please sign in to comment.