diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-21 15:06:52 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-09-21 15:06:52 -0700 |
commit | e35225e938820544f7e5b29475c2f8cc4da5cb1a (patch) | |
tree | 6fed9b7667cdd77177b23944d44f50ab351163d2 /actionpack/lib | |
parent | 1fe0a1b5ebebb1372968606b85ce08b93bc145c8 (diff) | |
download | rails-e35225e938820544f7e5b29475c2f8cc4da5cb1a.tar.gz rails-e35225e938820544f7e5b29475c2f8cc4da5cb1a.tar.bz2 rails-e35225e938820544f7e5b29475c2f8cc4da5cb1a.zip |
remove another `blank?` call
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index 7f0b525f6f..6a5b1a91e1 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -316,7 +316,7 @@ to: end def =~(mime_type) - return false if mime_type.blank? + return false unless mime_type regexp = Regexp.new(Regexp.quote(mime_type.to_s)) (@synonyms + [ self ]).any? do |synonym| synonym.to_s =~ regexp |