Permalink
Browse files

No need to have a variable assignment, especially if it has the same …

…name as the method parameter.
  • Loading branch information...
1 parent 4499df8 commit 41f2805b7f77b8872199d5f8cd4fd5cbd7d58e66 @jlecour committed Feb 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jekyll/site.rb
View
@@ -310,7 +310,7 @@ def site_payload
#
# Returns the Array of filtered entries.
def filter_entries(entries)
- entries = entries.reject do |e|
+ entries.reject do |e|
unless self.include.include?(e)
['.', '_', '#'].include?(e[0..0]) ||
e[-1..-1] == '~' ||

0 comments on commit 41f2805

Please sign in to comment.