Skip to content

removed unused variable in Doubly linked list and amended insert method #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

Closed
wants to merge 2 commits into from

Conversation

cynx
Copy link

@cynx cynx commented Jan 5, 2017

append method of doubly linked list had unused current variable - removed same.
in insert method of doubly linked list, for position === 0, we check if its !this.getHead(). however, this.getHead() is already available in current variable, hence instead we can just check !current

@loiane
Copy link
Owner

loiane commented Apr 17, 2017

In the first file, the 'current' variable is missing.
In the second file, the name of the class was renamed, which will make the test file fail.

@loiane loiane closed this Apr 17, 2017
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