diff options
author | Jeremy Evans <code@jeremyevans.net> | 2022-05-10 10:51:47 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2022-05-25 08:33:11 -0700 |
commit | 86e8f8d1f065ce3a3b571e6944224e8ea962e8be (patch) | |
tree | e89d4b98852c0414e07ebcc2340e9294a119a7fc | |
parent | 5c25a0e1e2c13a771ed0d983cc4fa38a15faf87d (diff) | |
download | rack-86e8f8d1f065ce3a3b571e6944224e8ea962e8be.tar.gz |
Remove unnecessary conditional in rack/multipart/parser.rb
This is the only remaining parser state. It's impossible to hit the else condition unless manually mutating the parser state.
-rw-r--r-- | lib/rack/multipart/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/multipart/parser.rb b/lib/rack/multipart/parser.rb index 2b0f392d..ce82cb1b 100644 --- a/lib/rack/multipart/parser.rb +++ b/lib/rack/multipart/parser.rb @@ -216,7 +216,7 @@ module Rack handle_mime_head when :MIME_BODY handle_mime_body - when :DONE + else # when :DONE return end |