Skip to content

Commit 69d348b

Browse files
committed
Use simpler 'if-present' syntax instead of 'unless-nil' construct
1 parent cf7848a commit 69d348b

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
@@ -379,7 +379,7 @@ def load(config:)
379379
disable! date: disable_date, because: reason
380380
end
381381

382-
auto_updates json_cask[:auto_updates] unless json_cask[:auto_updates].nil?
382+
auto_updates json_cask[:auto_updates] if json_cask[:auto_updates].present?
383383
conflicts_with(**json_cask[:conflicts_with]) if json_cask[:conflicts_with].present?
384384

385385
if json_cask[:depends_on].present?

0 commit comments

Comments
 (0)