From fda7c9b06e618bd32d4335e673a6efa3b09482b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 4 Feb 2019 13:14:09 +0100 Subject: [PATCH] perf: Shut up an eslint error The while(true) loop is intentional here and not a bug, so disable the corresponding eslint rule. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627 --- js/perf/hwtest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/perf/hwtest.js b/js/perf/hwtest.js index e74ba25ac..9c3c620fd 100644 --- a/js/perf/hwtest.js +++ b/js/perf/hwtest.js @@ -82,7 +82,7 @@ function extractBootTimestamp() { let result = null; let datastream = Gio.DataInputStream.new(sp.get_stdout_pipe()); - while (true) { + while (true) { // eslint-disable-line no-constant-condition let [line, length_] = datastream.read_line_utf8(null); if (line === null) break;