summaryrefslogtreecommitdiffstats
path: root/core/src/Polyfill/console.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-25 18:19:42 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-01 17:16:09 +0200
commitb9bc2417e7a8dc81feb0abe20359bedaf864f790 (patch)
tree61b47fbf37c1d168da8625224debde9e6a985348 /core/src/Polyfill/console.js
parent7fb651235128dcbca8a6683b5cdafdf835f46300 (diff)
downloadnextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.tar.gz
nextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.zip
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/Polyfill/console.js')
-rw-r--r--core/src/Polyfill/console.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/src/Polyfill/console.js b/core/src/Polyfill/console.js
index 72a1165e437..faa32c457c6 100644
--- a/core/src/Polyfill/console.js
+++ b/core/src/Polyfill/console.js
@@ -1,4 +1,5 @@
-/*
+/* eslint-disable no-console */
+/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -19,13 +20,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-if (typeof console === "undefined" || typeof console.log === "undefined") {
+if (typeof console === 'undefined' || typeof console.log === 'undefined') {
if (!window.console) {
- window.console = {};
+ window.console = {}
}
- const noOp = () => {};
- const methods = ['log', 'debug', 'warn', 'info', 'error', 'assert', 'time', 'timeEnd'];
+ const noOp = () => {}
+ const methods = ['log', 'debug', 'warn', 'info', 'error', 'assert', 'time', 'timeEnd']
for (var i = 0; i < methods.length; i++) {
- console[methods[i]] = noOp;
+ console[methods[i]] = noOp
}
}