lib/nanoc/extra/validators/links.rb in nanoc-3.7.3 vs lib/nanoc/extra/validators/links.rb in nanoc-3.7.4

- old
+ new

@@ -3,19 +3,19 @@ module Nanoc::Extra::Validators # @deprecated Use the Checking API or the `check` command instead class Links - def initialize(dir, index_filenames, params = {}) + def initialize(_dir, _index_filenames, params = {}) @include_internal = params.key?(:internal) && params[:internal] @include_external = params.key?(:external) && params[:external] end def run checks = [] checks << 'ilinks' if options[:internal] checks << 'elinks' if options[:external] - Nanoc::CLI.run [ 'check', checks ].flatten + Nanoc::CLI.run ['check', checks].flatten end end end