aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/golang.js
diff options
context:
space:
mode:
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');
}