brew style --fix (and a manual one)
This commit is contained in:
parent
fed0f7141e
commit
b698cef945
@ -59,7 +59,7 @@ module Cask
|
|||||||
|
|
||||||
attr_reader :token, :path
|
attr_reader :token, :path
|
||||||
|
|
||||||
def initialize(path)
|
def initialize(path) # rubocop:disable Lint/MissingSuper
|
||||||
path = Pathname(path).expand_path
|
path = Pathname(path).expand_path
|
||||||
|
|
||||||
@token = path.basename(path.extname).to_s
|
@token = path.basename(path.extname).to_s
|
||||||
|
|||||||
@ -418,7 +418,7 @@ class Pathname
|
|||||||
def install_metafiles(from = Pathname.pwd)
|
def install_metafiles(from = Pathname.pwd)
|
||||||
Pathname(from).children.each do |p|
|
Pathname(from).children.each do |p|
|
||||||
next if p.directory?
|
next if p.directory?
|
||||||
next if File.zero?(p)
|
next if File.empty?(p)
|
||||||
next unless Metafiles.copy?(p.basename.to_s)
|
next unless Metafiles.copy?(p.basename.to_s)
|
||||||
|
|
||||||
# Some software symlinks these files (see help2man.rb)
|
# Some software symlinks these files (see help2man.rb)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user