Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Aug 10, 2024
1 parent 27349e4 commit 63cde9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ def yield_content_with_no_args
# Same as {#yield_content} but accepts a splat of arguments to yield. This is slightly slower than {#yield_content}.
# @yield [*args] Yields the given arguments.
# @return [nil]
def yield_content_with_args(*args)
def yield_content_with_args(*)
return unless block_given?

buffer = @_context.buffer

original_length = buffer.bytesize
content = yield(*args)
content = yield(*)
__text__(content) if original_length == buffer.bytesize

nil
Expand Down

0 comments on commit 63cde9c

Please sign in to comment.