diff options
| author | Josh Hagins | 2016-10-10 10:45:48 -0400 |
|---|---|---|
| committer | Josh Hagins | 2016-10-24 16:21:08 -0400 |
| commit | 9628a613cfe75669c180bf78d086f0372efce30e (patch) | |
| tree | b38c2e9c8395c97bdada711b6e27767070457de4 | |
| parent | ce33f593b4259d5710cdf36da808be884ddedeef (diff) | |
| download | brew-9628a613cfe75669c180bf78d086f0372efce30e.tar.bz2 | |
metafiles: use Set.new instead of Array#to_set
| -rw-r--r-- | Library/Homebrew/metafiles.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/metafiles.rb b/Library/Homebrew/metafiles.rb index d2d9e1877..bff8c0344 100644 --- a/Library/Homebrew/metafiles.rb +++ b/Library/Homebrew/metafiles.rb @@ -2,14 +2,14 @@ require "set" class Metafiles # https://github.com/github/markup#markups - EXTENSIONS = %w[ + EXTENSIONS = Set.new %w[ .adoc .asc .asciidoc .creole .html .markdown .md .mdown .mediawiki .mkdn .org .pod .rdoc .rst .rtf .textile .txt .wiki - ].to_set.freeze - BASENAMES = %w[ + ].freeze + BASENAMES = Set.new %w[ about authors changelog changes copying copyright history license licence news notes notice readme todo - ].to_set.freeze + ].freeze def self.list?(file) return false if %w[.DS_Store INSTALL_RECEIPT.json].include?(file) |
