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