From 06a27330de669e0905a308225e4a06da00b1a886 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 26 Jul 2009 23:53:53 -0700 Subject: [PATCH] Prefer && over and --- lib/fakefs/fileutils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fakefs/fileutils.rb b/lib/fakefs/fileutils.rb index cd5acbe..d3b6a45 100644 --- a/lib/fakefs/fileutils.rb +++ b/lib/fakefs/fileutils.rb @@ -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) @@ -105,4 +105,4 @@ module FakeFS end alias_method :chdir, :cd end -end \ No newline at end of file +end