standardjs lint fixes

This commit is contained in:
glortho 2016-03-16 09:40:32 -04:00
parent 4df3d35a29
commit d863f5fa00
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ describe('fs-extra', function () {
})
describe('+ copy()', function () {
it('should return an error if src and dest are the same', function (done) {
var fileSrc = path.join(TEST_DIR, 'TEST_fs-extra_copy')
var fileDest = path.join(TEST_DIR, 'TEST_fs-extra_copy')

View File

@ -17,7 +17,7 @@ function copy (src, dest, options, callback) {
var basePath = process.cwd()
var currentPath = path.resolve(basePath, src)
var targetPath = path.resolve(basePath, dest)
if ( currentPath === targetPath ) return callback( new Error('Source and destination must not be the same.'))
if (currentPath === targetPath) return callback(new Error('Source and destination must not be the same.'))
fs.lstat(src, function (err, stats) {
if (err) return callback(err)