Skip to content

Commit

Permalink
Rack::Middleware: don't use block scan syntax.
Browse files Browse the repository at this point in the history
Let's not rely on the block argument since
it can have negative side effects.
  • Loading branch information
dhruvCW committed Nov 13, 2023
1 parent e5570db commit 4c4e99c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/prosopite/middleware/rack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ def initialize(app)
end

def call(env)
Prosopite.scan { @app.call(env) }
Prosopite.scan
@app.call(env)
ensure
Prosopite.finish
end
end
end
Expand Down

0 comments on commit 4c4e99c

Please sign in to comment.