diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/windows_pagefile.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_pagefile.rb b/lib/chef/resource/windows_pagefile.rb index 77818125b6..c40d6a485e 100644 --- a/lib/chef/resource/windows_pagefile.rb +++ b/lib/chef/resource/windows_pagefile.rb @@ -120,10 +120,9 @@ class Chef # raise an exception if the target drive location is invalid def pagefile_drive_exist?(pagefile) - if (::Dir.exist?(pagefile[0] + ":\\") == false) + if ::Dir.exist?(pagefile[0] + ":\\") == false raise "You are trying to create a pagefile on a drive that does not exist!" end - # ::Dir.exist?(pagefile[0] + ":\\") ? nil : (raise "You are trying to create a pagefile on a drive that does not exist!") end # See if the pagefile exists |