Fix newest rubocop complaint

pull/175/head
Andre Richter 2 years 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 end
group :development do group :development do
gem 'rubocop', '>= 1.37.1', require: false gem 'rubocop', '>= 1.38.0', require: false
end end

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

Loading…
Cancel
Save