mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
cleanup: Fix missing/stray spaces
Those are wrong according to our style guidelines, but the previous eslint ruleset didn't catch them. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
parent
682bd7e97c
commit
9eaa0089d0
41 changed files with 106 additions and 104 deletions
|
|
@ -200,8 +200,8 @@ function _collect(scriptModule, outputFile) {
|
|||
let raw = f.replace(null, false,
|
||||
Gio.FileCreateFlags.NONE,
|
||||
null);
|
||||
let out = Gio.BufferedOutputStream.new_sized (raw, 4096);
|
||||
Shell.write_string_to_stream (out, "{\n");
|
||||
let out = Gio.BufferedOutputStream.new_sized(raw, 4096);
|
||||
Shell.write_string_to_stream(out, "{\n");
|
||||
|
||||
Shell.write_string_to_stream(out, '"events":\n');
|
||||
Shell.PerfLog.get_default().dump_events(out);
|
||||
|
|
@ -250,10 +250,10 @@ function _collect(scriptModule, outputFile) {
|
|||
}
|
||||
Shell.write_string_to_stream(out, ' ]');
|
||||
|
||||
Shell.write_string_to_stream (out, ',\n"log":\n');
|
||||
Shell.write_string_to_stream(out, ',\n"log":\n');
|
||||
Shell.PerfLog.get_default().dump_log(out);
|
||||
|
||||
Shell.write_string_to_stream (out, '\n}\n');
|
||||
Shell.write_string_to_stream(out, '\n}\n');
|
||||
out.close(null);
|
||||
} else {
|
||||
let metrics = [];
|
||||
|
|
@ -262,13 +262,13 @@ function _collect(scriptModule, outputFile) {
|
|||
|
||||
metrics.sort();
|
||||
|
||||
print ('------------------------------------------------------------');
|
||||
print('------------------------------------------------------------');
|
||||
for (let i = 0; i < metrics.length; i++) {
|
||||
let metric = metrics[i];
|
||||
print (`# ${scriptModule.METRICS[metric].description}`);
|
||||
print (`${metric}: ${scriptModule.METRICS[metric].value}${scriptModule.METRICS[metric].units}`);
|
||||
print(`# ${scriptModule.METRICS[metric].description}`);
|
||||
print(`${metric}: ${scriptModule.METRICS[metric].value}${scriptModule.METRICS[metric].units}`);
|
||||
}
|
||||
print ('------------------------------------------------------------');
|
||||
print('------------------------------------------------------------');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue