From b2a251fff05728d85847c3d186ff1a969e80c13a Mon Sep 17 00:00:00 2001 From: Thomas Albertini <78874117+thomscoder@users.noreply.github.com> Date: Tue, 11 Jan 2022 00:57:22 +0100 Subject: [PATCH] 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 cde43d4d86dcfffaa91f9f9045fd416f18b4ad1d. --- .../refactor-global-variables-out-of-functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index f623f63e9e..0e0d771d01 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -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) {