Skip to content

Commit 85094fd

Browse files
committed
fix: Avoid return within a block (Ruby 2.5)
1 parent b304639 commit 85094fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/appmap/hook.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def hook_builtins
116116

117117
hook_method = lambda do |entry|
118118
cls, method = entry
119-
return false if config.never_hook?(cls, method)
119+
next if config.never_hook?(cls, method)
120120

121121
hook.package.handler_class.new(hook.package, cls, method).activate
122122
end

lib/appmap/open.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def run_server
3838
Thread.new do
3939
Rack::Handler::WEBrick.run(
4040
lambda do |env|
41-
return [200, { 'Content-Type' => 'text/html' }, [page]]
41+
[200, { 'Content-Type' => 'text/html' }, [page]]
4242
end,
4343
:Port => 0
4444
) do |server|

0 commit comments

Comments
 (0)