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 5d34cd5dcf9..0f96ede20c3 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 e0e2a21bb7b..fb122669474 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 f623f63e9ed..0e0d771d019 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 32fe7227272..343f8f25c8f 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 0f1f353bd31..61ec8051331 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 6ff28a54cb3..19ad4afeac6 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 b0b39371ff5..757e4751f50 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) {