Skip to content

Commit 184573a

Browse files
committed
Spotbugs: unused intermediate result.
1 parent 2e3fcc7 commit 184573a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib-extra/src/main/java/com/diffplug/spotless/extra/integration/DiffMessageFormatter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public Charset getEncoding() {
102102

103103
@Override
104104
public String getFormatted(File file, String rawUnix) {
105-
Path relative = rootDir.relativize(file.toPath());
106105
Path clean = cleanDir.resolve(rootDir.relativize(file.toPath()));
107106
byte[] content = Errors.rethrow().get(() -> Files.readAllBytes(clean));
108107
return new String(content, encoding);

0 commit comments

Comments
 (0)