copyDirSyncRecursive: Remove obsolete typeof check #67

Merged
Krinkle merged 1 commit from patch-1 into master 2014-01-17 18:37:10 -08:00
Showing only changes of commit f76a05e874 - Show all commits

View file

@ -219,7 +219,7 @@ exports.copyDirSyncRecursive = function(sourceDir, newDirLocation, opts) {
try {
if(fs.statSync(newDirLocation).isDirectory()) {
if(typeof opts !== 'undefined' && opts.forceDelete) {
if(opts.forceDelete) {
exports.rmdirSyncRecursive(newDirLocation);
} else {
return new Error('You are trying to delete a directory that already exists. Specify forceDelete in the opts argument to override this. Bailing~');