nav tabs on admin dashboard
This commit is contained in:
4
node_modules/fs-extra/lib/ensure/link.js
generated
vendored
4
node_modules/fs-extra/lib/ensure/link.js
generated
vendored
@@ -17,7 +17,7 @@ function createLink (srcpath, dstpath, callback) {
|
||||
pathExists(dstpath, (err, destinationExists) => {
|
||||
if (err) return callback(err)
|
||||
if (destinationExists) return callback(null)
|
||||
fs.lstat(srcpath, (err, stat) => {
|
||||
fs.lstat(srcpath, (err) => {
|
||||
if (err) {
|
||||
err.message = err.message.replace('lstat', 'ensureLink')
|
||||
return callback(err)
|
||||
@@ -36,7 +36,7 @@ function createLink (srcpath, dstpath, callback) {
|
||||
})
|
||||
}
|
||||
|
||||
function createLinkSync (srcpath, dstpath, callback) {
|
||||
function createLinkSync (srcpath, dstpath) {
|
||||
const destinationExists = fs.existsSync(dstpath)
|
||||
if (destinationExists) return undefined
|
||||
|
||||
|
||||
Reference in New Issue
Block a user