From 8d5dc762841c3362eee671a9688e08fdec693d37 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Mon, 30 Nov 2020 20:32:46 -0500 Subject: [PATCH] Satisfy brew typecheck --- Library/Homebrew/cli/args.rbi | 3 +++ Library/Homebrew/test/tap_spec.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cli/args.rbi b/Library/Homebrew/cli/args.rbi index b9d3416f46..ccf30d30eb 100644 --- a/Library/Homebrew/cli/args.rbi +++ b/Library/Homebrew/cli/args.rbi @@ -129,6 +129,9 @@ module Homebrew sig { returns(T.nilable(T::Boolean)) } def markdown?; end + sig { returns(T.nilable(T::Boolean)) } + def reset_cache?; end + sig { returns(T.nilable(String)) } def tag; end diff --git a/Library/Homebrew/test/tap_spec.rb b/Library/Homebrew/test/tap_spec.rb index 1beb1312a5..3a5ddf8197 100644 --- a/Library/Homebrew/test/tap_spec.rb +++ b/Library/Homebrew/test/tap_spec.rb @@ -424,7 +424,7 @@ describe CoreTap do end specify "files" do - path = CoreTap::TAP_DIRECTORY/"homebrew/homebrew-core" + path = Tap::TAP_DIRECTORY/"homebrew/homebrew-core" formula_file = subject.formula_dir/"foo.rb" formula_file.write <<~RUBY class Foo < Formula