Skip to content

Commit febc3b3

Browse files
authored
fix: typo in args (#527)
Soooo, this was my mistake. I was curious why this wasn't working as expected and it's because we're checking `args` here instead of `arg`. Yay type safety.
1 parent 3725605 commit febc3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semanticdb-javac/src/main/java/com/sourcegraph/semanticdb_javac/SemanticdbJavacOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static SemanticdbJavacOptions parse(String[] args, Context ctx) {
5555
}
5656
} else if (arg.startsWith("-sourceroot:")) {
5757
result.sourceroot = Paths.get(arg.substring("-sourceroot:".length())).normalize();
58-
} else if (arg.equals("-build-tool:sbt") || args.equals("-build-tool:mill")) {
58+
} else if (arg.equals("-build-tool:sbt") || arg.equals("-build-tool:mill")) {
5959
result.uriScheme = UriScheme.ZINC;
6060
} else if (arg.equals("-build-tool:bazel")) {
6161
result.uriScheme = UriScheme.BAZEL;

0 commit comments

Comments
 (0)