Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit 650d003

Browse files
committed
Remove unused argument
1 parent c39c1ce commit 650d003

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Reset search-index by deleting it every time
1414
preprocess do
1515
File.delete("output/search-index.json") if File.exists?("output/search-index.json")
16-
generate_redirects(config[:redirects], items)
16+
generate_redirects(config[:redirects])
1717
end
1818

1919
compile '/static/*' do

lib/redirect_generator.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module RedirectGenerator
2-
def generate_redirects(redirects, items)
2+
def generate_redirects(redirects)
3+
puts redirects
34
redirects.each do |pairs|
45
pairs.each_pair do |old_url, new_url|
56
@items << Nanoc::Item.new(

0 commit comments

Comments
 (0)