mirror of
https://github.com/jprichardson/node-fs-extra.git
synced 2026-01-18 16:13:55 +00:00
standardjs lint fixes
This commit is contained in:
parent
4df3d35a29
commit
d863f5fa00
@ -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')
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user