From cde43d4d86dcfffaa91f9f9045fd416f18b4ad1d Mon Sep 17 00:00:00 2001 From: thomscoder Date: Sat, 8 Jan 2022 16:59:14 +0100 Subject: [PATCH] fix: small lint fix in challenges functions --- .../refactor-global-variables-out-of-functions.md | 4 ++-- .../refactor-global-variables-out-of-functions.md | 4 ++-- .../refactor-global-variables-out-of-functions.md | 4 ++-- .../refactor-global-variables-out-of-functions.md | 4 ++-- .../refactor-global-variables-out-of-functions.md | 4 ++-- .../refactor-global-variables-out-of-functions.md | 4 ++-- .../refactor-global-variables-out-of-functions.md | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 5d34cd5dcf..0f96ede20c 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/chinese-traditional/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) { diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index e0e2a21bb7..fb12266947 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/chinese/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) { 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) { diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 32fe722727..343f8f25c8 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/espanol/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) { diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 0f1f353bd3..61ec805133 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/italian/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) { diff --git a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 6ff28a54cb..19ad4afeac 100644 --- a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/portuguese/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) { diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index b0b39371ff..757e4751f5 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/ukrainian/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) {