Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HarlemSquirrel committed May 16, 2024
1 parent 4b87b4a commit 758d168
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/amazing_print/formatters/hash_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,10 @@ def pre_ruby19_syntax(key, value, width)
"#{align(awesome_key, width)}#{colorize(' => ', :hash)}#{inspector.awesome(value)}"
end

def plain_single_line
def plain_single_line(&block)
plain = options[:plain]
options[:plain] = true
single_line do
yield
end
single_line(&block)
ensure
options[:plain] = plain
end
Expand Down

0 comments on commit 758d168

Please sign in to comment.