Skip to content

Update README.md #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 29, 2020
Merged

Update README.md #20

merged 5 commits into from
Apr 29, 2020

Conversation

johannalee
Copy link
Contributor

Fix node not defined error in README.md examples
And type error in evaluating children.length

Fix node not defined error in README.md examples
@codecov
Copy link

codecov bot commented Apr 22, 2020

Codecov Report

Merging #20 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #20   +/-   ##
=======================================
  Coverage   99.29%   99.29%           
=======================================
  Files           3        3           
  Lines         141      141           
  Branches       34       34           
=======================================
  Hits          140      140           
  Misses          1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1362ee...b50a73d. Read the comment docs.

README.md Outdated
@@ -93,13 +93,13 @@ function* treeWalker(refresh) {

// Basing on the node openness state we are deciding if we need to render
// the child nodes (if they exist).
if (node.children.length !== 0 && isOpened) {
if (children?.length !== 0 && isOpened) {
Copy link
Owner

Choose a reason for hiding this comment

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

The same situation as in the previous comment.

@Lodin
Copy link
Owner

Lodin commented Apr 25, 2020

@johannalee, thanks for the PR! Would be glad to merge it when all the flaws are fixed.

Co-Authored-By: Vlad Rindevich <[email protected]>
@johannalee
Copy link
Contributor Author

@Lodin comments have been applied :)

Copy link
Owner

@Lodin Lodin left a comment

Choose a reason for hiding this comment

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

Just one more fix 🙂 Sorry for delay

README.md Outdated
// Since it is a stack structure, we need to put nodes we want to render
// first to the end of the stack.
for (let i = node.children.length - 1; i >= 0; i--) {
for (let i = children?.length - 1; i >= 0; i--) {
Copy link
Owner

Choose a reason for hiding this comment

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

You forgot this one 🙂 It is not necessary to check since we already check it above.

Copy link
Owner

@Lodin Lodin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@Lodin Lodin merged commit 0da4fa8 into Lodin:master Apr 29, 2020
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