cmd/tap-info: Bump to Sorbet typed: strict
This commit is contained in:
parent
4ff3e370e0
commit
10dc874b1e
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: strict
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "abstract_command"
|
require "abstract_command"
|
||||||
@ -42,6 +42,7 @@ module Homebrew
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
sig { params(taps: T::Array[Tap]).void }
|
||||||
def print_tap_info(taps)
|
def print_tap_info(taps)
|
||||||
if taps.none?
|
if taps.none?
|
||||||
tap_count = 0
|
tap_count = 0
|
||||||
@ -83,6 +84,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sig { params(taps: T::Array[Tap]).void }
|
||||||
def print_tap_json(taps)
|
def print_tap_json(taps)
|
||||||
puts JSON.pretty_generate(taps.map(&:to_hash))
|
puts JSON.pretty_generate(taps.map(&:to_hash))
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user