fix: small lint fix in challenges functions (#44728)

* fix: small lint fix in challenges functions

* Revert "fix: small lint fix in challenges functions"

This reverts commit cde43d4d86.
This commit is contained in:
Thomas Albertini
2022-01-11 00:57:22 +01:00
committed by GitHub
parent 2952f9399d
commit b2a251fff0

View File

@ -89,7 +89,7 @@ assert(
const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"]; const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"];
// Change code below this line // Change code below this line
function add (bookName) { function add(bookName) {
bookList.push(bookName); bookList.push(bookName);
return bookList; return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
} }
// Change code below this line // Change code below this line
function remove (bookName) { function remove(bookName) {
const book_index = bookList.indexOf(bookName); const book_index = bookList.indexOf(bookName);
if (book_index >= 0) { if (book_index >= 0) {