From 258a579feeefe6fa204fad429aae070741437fc4 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 24 Aug 2020 23:49:46 +0200 Subject: [PATCH] Make `cask/macos` constants private. --- Library/Homebrew/cask/macos.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/cask/macos.rb b/Library/Homebrew/cask/macos.rb index 49e34caed8..cf65def619 100644 --- a/Library/Homebrew/cask/macos.rb +++ b/Library/Homebrew/cask/macos.rb @@ -238,6 +238,7 @@ module OS .map(&method(:Pathname)) .to_set .freeze + private_constant :SYSTEM_DIRS # TODO: There should be a way to specify a containing # directory under which nothing can be deleted. @@ -380,6 +381,7 @@ module OS .to_set .union(SYSTEM_DIRS) .freeze + private_constant :UNDELETABLE_PATHS def system_dir?(dir) SYSTEM_DIRS.include?(Pathname.new(dir).expand_path)