fix: small lint fix in challenges functions

pull/44728/head
thomscoder 2022-01-08 16:59:14 +01:00
parent 3416a4adef
commit cde43d4d86
7 changed files with 14 additions and 14 deletions

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"];
// Change code below this line
function add (bookName) {
function add(bookName) {
bookList.push(bookName);
return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
}
// Change code below this line
function remove (bookName) {
function remove(bookName) {
const book_index = bookList.indexOf(bookName);
if (book_index >= 0) {

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"];
// Change code below this line
function add (bookName) {
function add(bookName) {
bookList.push(bookName);
return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
}
// Change code below this line
function remove (bookName) {
function remove(bookName) {
const book_index = bookList.indexOf(bookName);
if (book_index >= 0) {

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"];
// Change code below this line
function add (bookName) {
function add(bookName) {
bookList.push(bookName);
return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
}
// Change code below this line
function remove (bookName) {
function remove(bookName) {
const book_index = bookList.indexOf(bookName);
if (book_index >= 0) {

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"];
// Change code below this line
function add (bookName) {
function add(bookName) {
bookList.push(bookName);
return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
}
// Change code below this line
function remove (bookName) {
function remove(bookName) {
const book_index = bookList.indexOf(bookName);
if (book_index >= 0) {

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"];
// Change code below this line
function add (bookName) {
function add(bookName) {
bookList.push(bookName);
return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
}
// Change code below this line
function remove (bookName) {
function remove(bookName) {
const book_index = bookList.indexOf(bookName);
if (book_index >= 0) {

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"];
// Change code below this line
function add (bookName) {
function add(bookName) {
bookList.push(bookName);
return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
}
// Change code below this line
function remove (bookName) {
function remove(bookName) {
const book_index = bookList.indexOf(bookName);
if (book_index >= 0) {

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"];
// Change code below this line
function add (bookName) {
function add(bookName) {
bookList.push(bookName);
return bookList;
@ -98,7 +98,7 @@ function add (bookName) {
}
// Change code below this line
function remove (bookName) {
function remove(bookName) {
const book_index = bookList.indexOf(bookName);
if (book_index >= 0) {