Skip to content

Commit 19f68d6

Browse files
committed
spotlessApply
1 parent 7878351 commit 19f68d6

File tree

1 file changed

+6
-6
lines changed
  • lib/src/main/java/com/diffplug/spotless/protobuf

1 file changed

+6
-6
lines changed

lib/src/main/java/com/diffplug/spotless/protobuf/BufStep.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ public FormatterStep create() {
6565
private State createState() {
6666
String instructions = "https://docs.buf.build/installation";
6767
ForeignExe exeAbsPath = ForeignExe.nameAndVersion("buf", version)
68-
.pathToExe(pathToExe)
69-
.versionRegex(Pattern.compile("(\\S*)"))
70-
.fixCantFind("Try following the instructions at " + instructions + ", or else tell Spotless where it is with {@code buf().pathToExe('path/to/executable')}");
68+
.pathToExe(pathToExe)
69+
.versionRegex(Pattern.compile("(\\S*)"))
70+
.fixCantFind("Try following the instructions at " + instructions + ", or else tell Spotless where it is with {@code buf().pathToExe('path/to/executable')}");
7171
return new State(this, exeAbsPath);
7272
}
7373

@@ -88,9 +88,9 @@ static class State implements Serializable {
8888
String format(ProcessRunner runner, String input, File file) throws IOException, InterruptedException {
8989
if (args == null) {
9090
args = Arrays.asList(
91-
exe.confirmVersionAndGetAbsolutePath(),
92-
"format",
93-
file.getAbsolutePath());
91+
exe.confirmVersionAndGetAbsolutePath(),
92+
"format",
93+
file.getAbsolutePath());
9494
}
9595
return runner.exec(input.getBytes(StandardCharsets.UTF_8), args).assertExitZero(StandardCharsets.UTF_8);
9696
}

0 commit comments

Comments
 (0)