Remove return

This commit is contained in:
Anatol Broder 2013-09-17 20:35:18 +02:00
parent 3e2ab58d56
commit e5f99e2798
1 changed files with 3 additions and 3 deletions

View File

@ -93,15 +93,15 @@ eos
def validate_dir(dir, safe) def validate_dir(dir, safe)
if File.symlink?(dir) && safe if File.symlink?(dir) && safe
return "Includes directory '#{dir}' cannot be a symlink" "Includes directory '#{dir}' cannot be a symlink"
end end
end end
def validate_file(file, safe) def validate_file(file, safe)
if !File.exists?(file) if !File.exists?(file)
return "Included file '#{@file}' not found in '#{INCLUDES_DIR}' directory" "Included file '#{@file}' not found in '#{INCLUDES_DIR}' directory"
elsif File.symlink?(file) && safe elsif File.symlink?(file) && safe
return "The included file '#{INCLUDES_DIR}/#{@file}' should not be a symlink" "The included file '#{INCLUDES_DIR}/#{@file}' should not be a symlink"
end end
end end