Skip to content

Commit

Permalink
Change return type
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Feb 19, 2024
1 parent b5d07dd commit e7e4ecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/requirement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def satisfied_result_parent
cc: T.nilable(String),
build_bottle: T::Boolean,
bottle_arch: T.nilable(String),
).returns(T.untyped)
).void
}
def modify_build_environment(env: nil, cc: nil, build_bottle: false, bottle_arch: nil)
satisfied?(env: env, cc: cc, build_bottle: build_bottle, bottle_arch: bottle_arch)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/requirement_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
let(:klass) { Class.new(described_class) }

it "returns nil" do
expect(requirement.modify_build_environment).to be_nil
expect { requirement.modify_build_environment }.not_to raise_error
end
end
end
Expand Down

0 comments on commit e7e4ecc

Please sign in to comment.