From 73e099aee7c36caa0f5ba14f77c7050935de88ee Mon Sep 17 00:00:00 2001 From: Milo Lee Date: Fri, 8 Oct 2021 23:54:49 +0800 Subject: [PATCH] Make brew style happy --- Library/Homebrew/cmd/info.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 021f48f428..bcba02b574 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -240,9 +240,10 @@ module Homebrew def github_info(f) return f.path if f.tap.blank? || f.tap.remote.blank? - path = if f.is_a?(Formula) + path = case f + when Formula f.path.relative_path_from(f.tap.path) - elsif f.is_a?(Cask::Cask) + when Cask::Cask f.sourcefile_path.relative_path_from(f.tap.path) end github_remote_path(f.tap.remote, path)