Skip to content

Commit

Permalink
Explicitly use the block parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jun 5, 2015
1 parent 41a97b9 commit 955e564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ruby/yast/y2logger.rb
Expand Up @@ -13,8 +13,8 @@ class Y2Logger < ::Logger
# location of the caller
CALL_FRAME = 2

def add(severity, _progname = nil, message = nil, &_block)
message = yield if block_given?
def add(severity, _progname = nil, message = nil, &block)
message = block.call if block

case severity
when DEBUG
Expand Down

0 comments on commit 955e564

Please sign in to comment.