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 raise Errno::EISDIR, src
end 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)) FileSystem.add(File.join(dest, src), src_file.entry.clone(dst_file))
else else
FileSystem.delete(dest) FileSystem.delete(dest)
@ -105,4 +105,4 @@ module FakeFS
end end
alias_method :chdir, :cd alias_method :chdir, :cd
end end
end end