Prefer && over and
This commit is contained in:
parent
5b5961f8e2
commit
06a27330de
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user