cmd/--prefix: Bump to Sorbet typed: strict

This commit is contained in:
Issy Long 2024-08-10 22:17:05 +01:00
parent 8e08a698d1
commit 6cc4d6dacb
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
# typed: true # typed: strict
# frozen_string_literal: true # frozen_string_literal: true
require "abstract_command" require "abstract_command"
@ -91,6 +91,7 @@ module Homebrew
private private
sig { void }
def list_unbrewed def list_unbrewed
dirs = HOMEBREW_PREFIX.subdirs.map { |dir| dir.basename.to_s } dirs = HOMEBREW_PREFIX.subdirs.map { |dir| dir.basename.to_s }
dirs -= %w[Library Cellar Caskroom .git] dirs -= %w[Library Cellar Caskroom .git]