brew style --fix (and a manual one)

This commit is contained in:
Mike McQuaid 2023-03-07 08:54:02 +00:00
parent fed0f7141e
commit b698cef945
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ module Cask
attr_reader :token, :path
def initialize(path)
def initialize(path) # rubocop:disable Lint/MissingSuper
path = Pathname(path).expand_path
@token = path.basename(path.extname).to_s

View File

@ -418,7 +418,7 @@ class Pathname
def install_metafiles(from = Pathname.pwd)
Pathname(from).children.each do |p|
next if p.directory?
next if File.zero?(p)
next if File.empty?(p)
next unless Metafiles.copy?(p.basename.to_s)
# Some software symlinks these files (see help2man.rb)