Skip to content

Traverse all option#13

Merged
manidlou merged 2 commits into
manidlou:masterfrom
jskrzypek:feat-traverse-all
Sep 23, 2018
Merged

Traverse all option#13
manidlou merged 2 commits into
manidlou:masterfrom
jskrzypek:feat-traverse-all

Conversation

@jskrzypek
Copy link
Copy Markdown
Contributor

@jskrzypek jskrzypek commented Sep 16, 2018

Implements suggestion in #11 (comment)

Comment thread klaw-sync.js
if (isUnderDepthLimit && ((opts.filter && opts.filter(item)) || !opts.filter)) ls = klawSync(pi, opts, ls)
} else if (!st.isDirectory()) {
if (!opts.nofile) { if ((opts.filter && opts.filter(item)) || !opts.filter) ls.push(item) }
if (shouldAdd) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@jskrzypek will you please use one line if statement here?

Comment thread klaw-sync.js
if (shouldAdd) {
ls.push(item)
}
if (shouldTraverse) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Also please use one line if statement here.

@manidlou
Copy link
Copy Markdown
Owner

@jskrzypek thanks for your contribution! I just added little comments. Other than that, code LGTM!

@manidlou
Copy link
Copy Markdown
Owner

Actually it is fine! We'll take care of formatting later as I want to release this as quickly as possible!

@manidlou manidlou merged commit 28acfba into manidlou:master Sep 23, 2018
@jskrzypek
Copy link
Copy Markdown
Contributor Author

@manidlou sorry, I was on holiday, glad the pr worked out :)

@jskrzypek jskrzypek deleted the feat-traverse-all branch September 25, 2018 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants