aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/golang.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2022-05-09 23:13:50 -0500
committerGitHub <noreply@github.com>2022-05-09 23:13:50 -0500
commitf2c1e0bd315fbce55582c440f2d3c8c922a5083a (patch)
treec726d7e1e56fe5b97db357dd0f8c9517c90ddaeb /lib/compilers/golang.js
parent141fa735217859d5ebc2985c5eabd2a780246485 (diff)
downloadcompiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.tar.gz
compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.zip
The Grand Reformat (#3643)gh-2830
* The Grand Reformat - everything made prettier...literally - some tweaks to include a few more files, including documentation - minor changes to format style - some tiny `// prettier-ignore` changes to keep a few things the way we like them - a couple of super minor tweaks to embedded document types to ensure they format correctly
Diffstat (limited to 'lib/compilers/golang.js')
-rw-r--r--lib/compilers/golang.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/compilers/golang.js b/lib/compilers/golang.js
index e68eeb904..8aa0fd985 100644
--- a/lib/compilers/golang.js
+++ b/lib/compilers/golang.js
@@ -24,10 +24,10 @@
import _ from 'underscore';
-import { BaseCompiler } from '../base-compiler';
+import {BaseCompiler} from '../base-compiler';
import * as utils from '../utils';
-import { ClangParser } from './argument-parsers';
+import {ClangParser} from './argument-parsers';
// Each arch has a list of jump instructions in
// Go source src/cmd/asm/internal/arch.
@@ -170,7 +170,8 @@ export class GolangCompiler extends BaseCompiler {
extractLogging(stdout) {
let filepath = `./${this.compileFilename}`;
const reLogging = /^[^:]+:\d+:(\d+:)?\s.*/;
- return stdout.filter(obj => obj.text.match(reLogging))
+ return stdout
+ .filter(obj => obj.text.match(reLogging))
.map(obj => obj.text.replace(filepath, '<source>'))
.join('\n');
}