Skip to content

Commit 05b296b

Browse files
committed
Use simpler 'if-present' syntax instead of 'unless-nil' construct
1 parent 8f9afb5 commit 05b296b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/Homebrew/cask/cask_loader.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def load(config:)
362362
disable! date: disable_date, because: reason
363363
end
364364

365-
auto_updates json_cask[:auto_updates] unless json_cask[:auto_updates].nil?
365+
auto_updates json_cask[:auto_updates] if json_cask[:auto_updates].present?
366366
conflicts_with(**json_cask[:conflicts_with]) if json_cask[:conflicts_with].present?
367367

368368
if json_cask[:depends_on].present?

0 commit comments

Comments
 (0)