From a436592401f5155a6ae8bef5ad5ece324c8ea4ac Mon Sep 17 00:00:00 2001
From: Matt Godbolt <matt@godbolt.org>
Date: Thu, 1 Dec 2022 21:13:50 -0600
Subject: [PATCH] npm run format

---
 static/panes/compiler.ts     |  6 +-----
 static/panes/gccdump-view.ts | 20 +++++---------------
 2 files changed, 6 insertions(+), 20 deletions(-)

diff --git a/static/panes/compiler.ts b/static/panes/compiler.ts
index 28aaa1c68..c7d8a5e07 100644
--- a/static/panes/compiler.ts
+++ b/static/panes/compiler.ts
@@ -2152,11 +2152,7 @@ export class Compiler extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Co
         }
     }
 
-    onGccDumpFiltersChanged(
-        id: number,
-        dumpOpts: GccDumpFiltersState,
-        reqCompile: boolean
-    ): void {
+    onGccDumpFiltersChanged(id: number, dumpOpts: GccDumpFiltersState, reqCompile: boolean): void {
         if (this.id === id) {
             this.treeDumpEnabled = dumpOpts.treeDump;
             this.rtlDumpEnabled = dumpOpts.rtlDump;
diff --git a/static/panes/gccdump-view.ts b/static/panes/gccdump-view.ts
index ce25514e5..b5be0507a 100644
--- a/static/panes/gccdump-view.ts
+++ b/static/panes/gccdump-view.ts
@@ -91,13 +91,13 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
             };
             const match = state.selectedPass.match(selectedPassRe);
             if (match) {
-                const selectedPassO : GccDumpViewSelectedPass = {
+                const selectedPassO: GccDumpViewSelectedPass = {
                     filename_suffix: match[1] + '.' + match[2],
                     name: match[2] + ' (' + passType[match[1]] + ')',
                     command_prefix: '-fdump-' + passType[match[1]] + '-' + match[2],
 
                     // FIXME(dkm): maybe this could be avoided by better typing.
-                    selectedPass : null,
+                    selectedPass: null,
                 };
 
                 this.eventHub.emit('gccDumpPassSelected', this.compilerInfo.compilerId, selectedPassO, false);
@@ -109,12 +109,7 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
         this.uiIsReady = false;
         this.onUiNotReady();
 
-        this.eventHub.emit(
-            'gccDumpFiltersChanged',
-            this.compilerInfo.compilerId,
-            this.getEffectiveFilters(),
-            false
-        );
+        this.eventHub.emit('gccDumpFiltersChanged', this.compilerInfo.compilerId, this.getEffectiveFilters(), false);
 
         this.updateButtons();
         this.updateState();
@@ -383,7 +378,7 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
         }
     }
 
-    getEffectiveFilters() : GccDumpFiltersState {
+    getEffectiveFilters(): GccDumpFiltersState {
         // This cast only works if gccdump.pug and gccdump-view.interfaces are
         // kept synchronized. See comment in gccdump-view.interfaces.ts.
 
@@ -395,12 +390,7 @@ export class GccDump extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Gcc
         this.updateButtons();
 
         if (this.inhibitPassSelect !== true) {
-            this.eventHub.emit(
-                'gccDumpFiltersChanged',
-                this.compilerInfo.compilerId,
-                this.getEffectiveFilters(),
-                true
-            );
+            this.eventHub.emit('gccDumpFiltersChanged', this.compilerInfo.compilerId, this.getEffectiveFilters(), true);
         }
     }
 
-- 
GitLab