Skip to content

copy*(): refactor copyDirItems() to avoid passing null param#570

Merged
RyanZim merged 1 commit intov6-devfrom
refactor-copy
Apr 25, 2018
Merged

copy*(): refactor copyDirItems() to avoid passing null param#570
RyanZim merged 1 commit intov6-devfrom
refactor-copy

Conversation

@manidlou
Copy link
Copy Markdown
Collaborator

refactored copy and copySync so that startCopy can have a consistent signature and no need to pass a null param. IDK, I figured that'd be easier to read and understand the code then!

@manidlou manidlou self-assigned this Apr 19, 2018
@manidlou manidlou added this to the 6.0.0 milestone Apr 19, 2018
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 87.048% when pulling 7b1ae0d on refactor-copy into da69c57 on v6-dev.

Copy link
Copy Markdown
Collaborator

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread lib/copy/copy.js
function copyDirItem (items, item, src, dest, opts, cb) {
const srcItem = path.join(src, item)
const destItem = path.join(dest, item)
checkPaths(srcItem, destItem, (err, resolvedDest) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat that it is in here now

@manidlou
Copy link
Copy Markdown
Collaborator Author

@RyanZim ping?!

@RyanZim RyanZim merged commit bbbc2db into v6-dev Apr 25, 2018
@RyanZim
Copy link
Copy Markdown
Collaborator

RyanZim commented Apr 25, 2018

@manidlou Thanks for the ping; somehow this slipped through the cracks.

@manidlou manidlou deleted the refactor-copy branch April 26, 2018 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants