summaryrefslogtreecommitdiff
path: root/lib/chef/monkey_patches/webrick-utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/monkey_patches/webrick-utils.rb')
-rw-r--r--lib/chef/monkey_patches/webrick-utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/monkey_patches/webrick-utils.rb b/lib/chef/monkey_patches/webrick-utils.rb
index f7f2cf6ad4..ff275a434d 100644
--- a/lib/chef/monkey_patches/webrick-utils.rb
+++ b/lib/chef/monkey_patches/webrick-utils.rb
@@ -11,7 +11,7 @@ module WEBrick
# create_listeners on Windows with Ruby > 2.0.0 does not
# raise an error if we're already listening on a port.
#
- def create_listeners(address, port, logger=nil)
+ def create_listeners(address, port, logger = nil)
#
# utils.rb -- Miscellaneous utilities
#
@@ -40,7 +40,7 @@ module WEBrick
sockets << sock
rescue => ex
logger.warn("TCPServer Error: #{ex}") if logger
- last_error = ex
+ last_error = ex
end
}
raise last_error if sockets.empty?