From b548dbde973479ec5537a043b570047423318f7b Mon Sep 17 00:00:00 2001 From: alexbostock Date: Mon, 2 Jul 2018 10:46:41 +0100 Subject: [PATCH] Fix style --- Library/Homebrew/cask/lib/hbc/cask.rb | 4 ++-- Library/Homebrew/cask/lib/hbc/cli/info.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cask/lib/hbc/cask.rb b/Library/Homebrew/cask/lib/hbc/cask.rb index 9e51d92d76..9402e8eec1 100644 --- a/Library/Homebrew/cask/lib/hbc/cask.rb +++ b/Library/Homebrew/cask/lib/hbc/cask.rb @@ -145,14 +145,14 @@ module Hbc "container" => container, "gpg" => gpg, "accessibility_access" => accessibility_access, - "auto_updates" => auto_updates + "auto_updates" => auto_updates, } artifacts.each do |a| hsh["artifacts"][a.class.english_name] = a.summarize end - hsh["conflicts_with"] = [] if hsh["conflicts_with"] == nil + hsh["conflicts_with"] = [] if hsh["conflicts_with"].nil? hsh end diff --git a/Library/Homebrew/cask/lib/hbc/cli/info.rb b/Library/Homebrew/cask/lib/hbc/cli/info.rb index 076d2f5a23..7be3a3a03a 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/info.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/info.rb @@ -4,7 +4,7 @@ module Hbc class CLI class Info < AbstractCommand option "--json-v1", :json, false - + def initialize(*) super raise CaskUnspecifiedError if args.empty?