Skip to content

Commit 2de0551

Browse files
chrisseatonLillian Zhang
authored andcommitted
Lint
1 parent e74c0f8 commit 2de0551

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spec/truffle/thread/detect_recursion_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module TruffleThreadDetectRecursionSpecFixtures
1212
def self.check_recursion_to_depth(obj, depth)
1313
# checks that obj recurses to a given depth
1414
return false unless obj.respond_to?(:each)
15-
Truffle::ThreadOperations.detect_recursion(obj) do
15+
Truffle::ThreadOperations.detect_recursion(obj) do
1616
if depth > 1
1717
obj.each do |el|
1818
if check_recursion_to_depth(el, depth-1)

src/main/ruby/truffleruby/core/array.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,12 @@ def hash
509509
# the whole structure is recursive. In which case, abandon most of
510510
# the work and return a simple hash value.
511511
rescue Truffle::ThreadOperations::InnerRecursionDetected
512-
return size
512+
return size
513513
ensure
514514
objects.delete :__detect_outermost_recursion__
515515
objects.delete id
516+
end
516517
end
517-
end
518518

519519
hash_val
520520
end

src/main/ruby/truffleruby/core/struct.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def to_s
147147
end
148148
end
149149

150-
return +'[...]'
150+
+'[...]'
151151
end
152152
alias_method :inspect, :to_s
153153

0 commit comments

Comments
 (0)