From b698cef945307dc1668b78d2f2f0370524d00b3d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 7 Mar 2023 08:54:02 +0000 Subject: [PATCH] brew style --fix (and a manual one) --- Library/Homebrew/cask/cask_loader.rb | 2 +- Library/Homebrew/extend/pathname.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/cask_loader.rb b/Library/Homebrew/cask/cask_loader.rb index ef44dff73f..d8a6bd41c9 100644 --- a/Library/Homebrew/cask/cask_loader.rb +++ b/Library/Homebrew/cask/cask_loader.rb @@ -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 diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index f447afe1c6..a929f153b8 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -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)