From b7f7ff54a5c65bfcaa36dd14523b5a037523d19a Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Tue, 24 Sep 2013 18:36:29 +0530 Subject: [PATCH] Remove explicit block passing --- lib/sinatra/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 123eb58d..f28e003a 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -1388,7 +1388,7 @@ module Sinatra # Set configuration options for Sinatra and/or the app. # Allows scoping of settings for certain environments. - def configure(*envs, &block) + def configure(*envs) yield self if envs.empty? || envs.include?(environment.to_sym) end @@ -1483,7 +1483,7 @@ module Sinatra private # Starts the server by running the Rack Handler. - def start_server(handler, server_settings, handler_name, &block) + def start_server(handler, server_settings, handler_name) handler.run(self, server_settings) do |server| unless handler_name =~ /cgi/i $stderr.puts "== Sinatra/#{Sinatra::VERSION} has taken the stage " +