include: improve boolean logic in #valid_include_file?

This commit is contained in:
Parker Moore 2017-01-11 12:05:56 -05:00 committed by GitHub
parent faa67bcd62
commit 02858fdf08
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ eos
end
def valid_include_file?(path, dir, safe)
!(outside_site_source?(path, dir, safe) || !File.file?(path))
!outside_site_source?(path, dir, safe) && File.file?(path)
end
def outside_site_source?(path, dir, safe)