Using implicit returns to conform to coding style

This commit is contained in:
Renaud Martinet 2014-05-30 08:46:31 +02:00
parent 72c410363c
commit a324eafac4
1 changed files with 2 additions and 2 deletions

View File

@ -58,9 +58,9 @@ module Jekyll
def parent_dirs(file) def parent_dirs(file)
parent_dir = File.dirname(file) parent_dir = File.dirname(file)
if parent_dir == site.dest if parent_dir == site.dest
return [] []
else else
return [parent_dir] + parent_dirs(parent_dir) [parent_dir] + parent_dirs(parent_dir)
end end
end end