Skip to content

Commit

Permalink
Removed an unused var.
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
  • Loading branch information
DAddYE authored and rkh committed Sep 25, 2011
1 parent 9047591 commit aee668d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/sinatra/base.rb
Expand Up @@ -1098,7 +1098,6 @@ def compile!(verb, path, block, options = {})
def compile(path)
keys = []
if path.respond_to? :to_str
special_chars = %w{. + ( ) $}
pattern = path.to_str.gsub(/[^\?\%\\\/\:\*\w]/) { |c| encoded(c) }
pattern.gsub! /((:\w+)|\*)/ do |match|
if match == "*"
Expand Down

0 comments on commit aee668d

Please sign in to comment.