Skip to content

Commit c431a70

Browse files
committed
Format code
1 parent b82e75b commit c431a70

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

lib/src/main/java/com/diffplug/spotless/rome/RomeStep.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2023 DiffPlug
2+
* Copyright 2016-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -440,8 +440,7 @@ private String format(ProcessRunner runner, String input, File file) throws IOEx
440440
// a list of hard-coded file names, such as package.json or tsconfig.json.
441441
if (formatted == null || formatted.isEmpty()) {
442442
return input;
443-
}
444-
else {
443+
} else {
445444
return formatted;
446445
}
447446
}

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/BiomeIntegrationTest.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 DiffPlug
2+
* Copyright 2023-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -352,16 +352,16 @@ void failureWhenNotParseable() throws Exception {
352352
@Test
353353
void preservesIgnoredFiles() throws Exception {
354354
setFile("build.gradle").toLines(
355-
"plugins {",
356-
" id 'com.diffplug.spotless'",
357-
"}",
358-
"repositories { mavenCentral() }",
359-
"spotless {",
360-
" json {",
361-
" target '**/*.json'",
362-
" biome('1.5.0')",
363-
" }",
364-
"}");
355+
"plugins {",
356+
" id 'com.diffplug.spotless'",
357+
"}",
358+
"repositories { mavenCentral() }",
359+
"spotless {",
360+
" json {",
361+
" target '**/*.json'",
362+
" biome('1.5.0')",
363+
" }",
364+
"}");
365365
setFile("package.json").toResource("biome/json/packageBefore.json");
366366

367367
var spotlessApply = gradleRunner().withArguments("--stacktrace", "spotlessApply").build();

plugin-maven/src/test/java/com/diffplug/spotless/maven/biome/BiomeMavenTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 DiffPlug
2+
* Copyright 2023-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

testlib/src/test/java/com/diffplug/spotless/rome/RomeStepTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 DiffPlug
2+
* Copyright 2023-2024 DiffPlug
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)