Skip to content

Commit

Permalink
Make standard happy
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 25, 2023
1 parent 63f8ced commit 5f28c73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/move/__tests__/move.test.js
Expand Up @@ -6,7 +6,6 @@ const fse = require('../../')
const path = require('path')
const assert = require('assert')
const { differentDevice, ifCrossDeviceEnabled } = require('./cross-device-utils')
const u = require('universalify').fromPromise

/* global afterEach, beforeEach, describe, it */

Expand Down
6 changes: 3 additions & 3 deletions lib/move/move.js
Expand Up @@ -8,7 +8,7 @@ const { mkdirp } = require('../mkdirs')
const { pathExists } = require('../path-exists')
const stat = require('../util/stat')

async function move(src, dest, opts = {}) {
async function move (src, dest, opts = {}) {
const overwrite = opts.overwrite || opts.clobber || false

const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, 'move', opts)
Expand All @@ -25,7 +25,7 @@ async function move(src, dest, opts = {}) {
return doRename(src, dest, overwrite, isChangingCase)
}

async function doRename(src, dest, overwrite, isChangingCase) {
async function doRename (src, dest, overwrite, isChangingCase) {
if (!isChangingCase) {
if (overwrite) {
await remove(dest)
Expand All @@ -45,7 +45,7 @@ async function doRename(src, dest, overwrite, isChangingCase) {
}
}

async function moveAcrossDevice(src, dest, overwrite) {
async function moveAcrossDevice (src, dest, overwrite) {
const opts = {
overwrite,
errorOnExist: true,
Expand Down

0 comments on commit 5f28c73

Please sign in to comment.