We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unless
1 parent b031cb3 commit 6fb02e0Copy full SHA for 6fb02e0
src/main/ruby/core/string.rb
@@ -1591,11 +1591,11 @@ def +@
1591
1592
def -@
1593
str = frozen? ? self : dup.freeze
1594
- unless str.tainted? || !(str.instance_variables).empty?
+ if str.tainted? || !(str.instance_variables).empty?
1595
+ str
1596
+ else
1597
Truffle::Ropes.flatten_rope(str)
1598
Truffle.invoke_primitive(:string_intern, str)
- else
- str
1599
end
1600
1601
0 commit comments