Fix newest rubocop complaint

pull/175/head
Andre Richter 1 year ago
parent 5e3af39bdc
commit c7f00c9395
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -11,5 +11,5 @@ group :uart do
end
group :development do
gem 'rubocop', '>= 1.37.1', require: false
gem 'rubocop', '>= 1.38.0', require: false
end

@ -27,9 +27,9 @@ end
# Monkey-patch IO so that we get access to the buffer of a previously unsuccessful expect().
class IO
# rubocop:disable Naming:MethodName
attr_reader :unusedBuf
# rubocop:enable Naming:MethodName
def unused_buf
@unusedBuf
end
end
# A wrapper class that records characters that have been received from a PTY.
@ -43,7 +43,7 @@ class PTYLoggerWrapper
def expect(pattern, timeout)
result = @pty.expect(pattern, timeout)
@log << if result.nil?
@pty.unusedBuf
@pty.unused_buf
else
result
end

Loading…
Cancel
Save