Skip to content

Commit 1970771

Browse files
authoredDec 8, 2020
Fix inefficient assert pattern in Rack::Lint (rack#1724)
* Use `raise "message" unless condition` instead of assert in Rack::Lint * The existing #assert is very inefficient because it computes the error message string even if no error is raised. * Fixes rack#1723 * Deprecate Rack::Lint::Assertion#assert * No need to include the Assertion module anymore in lint.rb
1 parent d3225f7 commit 1970771

File tree

1 file changed

+179
-196
lines changed

1 file changed

+179
-196
lines changed
 

0 commit comments

Comments
 (0)
Please sign in to comment.