Skip to content

Commit

Permalink
catalog.rb: Avoiding p as a local name [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored and colszowka committed Feb 8, 2018
1 parent 72d360d commit a80ffe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/catalog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def category_groups
end

def categories_at(path)
Dir[File.join(path, "*.yml")].reject { |p| File.basename(p) == "_meta.yml" }.map do |category_path|
Dir[File.join(path, "*.yml")].reject { |file_path| File.basename(file_path) == "_meta.yml" }.map do |category_path|
YAML.safe_load(File.read(category_path)).merge(permalink: File.basename(category_path).gsub(".yml", ""))
end
end
Expand Down

0 comments on commit a80ffe9

Please sign in to comment.