8000 chore: formatting · Arthurm1/scip-java@42f8636 · GitHub
[go: up one dir, main page]

Skip to content

Commit 42f8636

Browse files
committed
chore: formatting
1 parent a197d58 commit 42f8636

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

scip-semanticdb/src/main/java/com/sourcegraph/scip_semanticdb/BazelBuildTool.java

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,26 @@ public static int runAndReturnExitCode(String[] args) throws IOException, Interr
3232

3333
List<MavenPackage> mavenPackages = mavenPackages(options);
3434
ScipSemanticdbReporter reporter =
35-
new ScipSemanticdbReporter() {
36-
private boolean hasErrors = false;
37-
@Override
38-
public void error(Throwable e) {
39-
e.printStackTrace(System.err);
40-
hasErrors = true;
41-
}
35+
new ScipSemanticdbReporter() {
36+
private boolean hasErrors = false;
4237

43-
@Override
44-
public void error(String message) {
45-
System.err.println("ERROR[scip-semanticdb]: " + message);
46-
hasErrors = true;
47-
}
38+
@Override
39+
public void error(Throwable e) {
40+
e.printStackTrace(System.err);
41+
hasErrors = true;
42+
}
4843

49-
@Override
50-
public boolean hasErrors() {
51-
return this.hasErrors;
52-
}
53-
};
44+
@Override
45+
public void error(String message) {
46+
System.err.println("ERROR[scip-semanticdb]: " + message);
47+
hasErrors = true;
48+
}
49+
50+
@Override
51+
public boolean hasErrors() {
52+
return this.hasErrors;
53+
}
54+
};
5455
ScipSemanticdbOptions scipOptions =
5556
new ScipSemanticdbOptions(
5657
options.targetroots,
@@ -67,11 +68,11 @@ public boolean hasErrors() {
6768
ScipSemanticdb.run(scipOptions);
6869

6970
if (!scipOptions.reporter.hasErrors()) {
70-
System.out.println("done: " + scipOptions.output);
71-
return 0;
71+
System.out.println("done: " + scipOptions.output);
72+
return 0;
7273
} else {
73-
System.out.println("SCIP index generation failed");
74-
return 1;
74+
System.out.println("SCIP index generation failed");
75+
return 1;
7576
}
7677
}
7778

0 commit comments

Comments
 (0)
0