1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Fix extraneous whitespace [ci skip]

This commit is contained in:
Thomas Walpole 2020-09-06 13:22:09 -07:00
parent d6a4c8c116
commit 6070d9bd47

View file

@ -85,7 +85,7 @@ module Capybara
return Kernel.warn(message, uplevel: uplevel) if RUBY_VERSION >= '2.6'
# TODO: Remove when we drop support for Ruby 2.5
# Workaround for emulating `warn '...', uplevel: n` in Ruby 2.5 or lower.
# Workaround for emulating `warn '...', uplevel: n` in Ruby 2.5 or lower.
if (match = /^(?<file>.+?):(?<line>\d+)(?::in `.*')?/.match(caller[uplevel]))
location = [match[:file], match[:line]].join(':')
Kernel.warn "#{location}: #{message}"