Skip to content

Commit

Permalink
Remove unecessary self. It keeps the code cleaner and also helps avoi…
Browse files Browse the repository at this point in the history
…d accident shadowing.
  • Loading branch information
jpiasetz committed Mar 19, 2014
1 parent e56948a commit 218bf4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jekyll/site.rb
Expand Up @@ -147,7 +147,7 @@ def read_directories(dir = '')
f_abs = File.join(base, f)
if File.directory?(f_abs)
f_rel = File.join(dir, f)
read_directories(f_rel) unless self.destination.sub(/\/$/, '') == f_abs
read_directories(f_rel) unless destination.sub(/\/$/, '') == f_abs
elsif has_yaml_header?(f_abs)
page = Page.new(self, source, dir, f)
pages << page if page.published?
Expand Down Expand Up @@ -253,7 +253,7 @@ def cleanup
#
# Returns nothing.
def write
each_site_file { |item| item.write(self.destination) }
each_site_file { |item| item.write(destination) }
end

# Construct a Hash of Posts indexed by the specified Post attribute.
Expand Down

0 comments on commit 218bf4a

Please sign in to comment.