Skip to content

Commit

Permalink
Move http_status_ignore patching
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Mar 14, 2016
1 parent 135dff8 commit aea72c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/htmlproofer
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ Mercenary.program(:htmlproofer) do |p|
end
options[option.config_key.to_sym] = opts[option.config_key]
end

options[:http_status_ignore] = options[:http_status_ignore].map(&:to_i)

# some minor manipulation of a special option
unless opts['url_swap'].nil?
Expand All @@ -73,6 +71,8 @@ Mercenary.program(:htmlproofer) do |p|

options[:cache] = {}
options[:cache][:timeframe] = opts['timeframe'] unless opts['timeframe'].nil?

options[:http_status_ignore] = Array(options[:http_status_ignore]).map(&:to_i)

paths = path.split(',')
if opts['as_links']
Expand Down

0 comments on commit aea72c1

Please sign in to comment.