Skip to content

Commit

Permalink
dev-cmd/cat: require "formula" only when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Nov 23, 2021
1 parent 687dbe5 commit c6719e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/dev-cmd/cat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# frozen_string_literal: true

require "cli/parser"
require "formula"

module Homebrew
extend T::Sig
Expand Down Expand Up @@ -32,6 +31,8 @@ def cat

cd HOMEBREW_REPOSITORY
pager = if Homebrew::EnvConfig.bat?
require "formula"

unless Formula["bat"].any_version_installed?
# The user might want to capture the output of `brew cat ...`
# Redirect stdout to stderr
Expand Down

0 comments on commit c6719e5

Please sign in to comment.