Prefer && over and

This commit is contained in:
Chris Wanstrath 2009-07-26 23:53:53 -07:00
parent 5b5961f8e2
commit 06a27330de

View File

@ -29,7 +29,7 @@ module FakeFS
raise Errno::EISDIR, src
end
if dst_file and File.directory?(dst_file)
if dst_file && File.directory?(dst_file)
FileSystem.add(File.join(dest, src), src_file.entry.clone(dst_file))
else
FileSystem.delete(dest)