diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-16 13:30:25 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-17 18:50:55 +0900 |
| commit | bd57322bfeddc73082f71d9cd21f2ba1bcd0d039 (patch) | |
| tree | 946229dabd6a7d9595f3a164fabfdb4933993a15 /lib | |
| parent | 03b82d1865db32da8d69e91881675d9d6153872f (diff) | |
[rubygems/rubygems] util/rubocop -A --only Style/DefWithParentheses
https://github.com/rubygems/rubygems/commit/91391ceedf
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems/mock_gem_ui.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/mock_gem_ui.rb b/lib/rubygems/mock_gem_ui.rb index d5a0fa2be6..fab292d42a 100644 --- a/lib/rubygems/mock_gem_ui.rb +++ b/lib/rubygems/mock_gem_ui.rb @@ -29,7 +29,7 @@ class Gem::MockGemUi < Gem::StreamUI module TTY attr_accessor :tty - def tty?() + def tty? @tty = true unless defined?(@tty) @tty end |
