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
This commit is contained in:
parent
1e13f32cea
commit
fda7c9b06e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user