Skip to content

Commit

Permalink
Remove duplicated opts handling
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Oct 21, 2023
1 parent eebb61d commit ce7cf64
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/copy/copy.js
Expand Up @@ -12,10 +12,6 @@ async function copy (src, dest, opts = {}) {
opts = { filter: opts }
}

opts = typeof opts === 'function'
? { filter: opts }
: opts

opts.clobber = 'clobber' in opts ? !!opts.clobber : true // default to true for now
opts.overwrite = 'overwrite' in opts ? !!opts.overwrite : opts.clobber // overwrite falls back to clobber

Expand Down

0 comments on commit ce7cf64

Please sign in to comment.