Skip to content

Commit f60a2a4

Browse files
committed
chore: cleanup
1 parent 54abda8 commit f60a2a4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/src/main/java/com/diffplug/spotless/cli/SpotlessCLI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private ResultType handleResult(Result result) {
222222
return ResultType.CLEAN;
223223
}
224224
if (result.lintState().getDirtyState().didNotConverge()) {
225-
LOGGER.warn("File did not converge: {}", result.target().toFile()); // maybe log to user facing?
225+
LOGGER.warn("File did not converge: {}", result.target().toFile());
226226
return ResultType.DID_NOT_CONVERGE;
227227
}
228228
return this.spotlessMode.handleResult(result);

app/src/main/java/com/diffplug/spotless/cli/steps/Prettier.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ public List<FormatterStep> prepareFormatterSteps(SpotlessActionContext context)
9595
.withPrettierConfigPath(prettierConfigPath)
9696
.build();
9797

98-
// return List.of(adapt(prettierFormatterStep));
99-
10098
return List.of(prettierFormatterStep);
10199
}
102100

@@ -109,13 +107,13 @@ private Map<String, Object> prettierConfigOptions() {
109107
if (value == null) {
110108
normalized.put(key, null);
111109
} else {
112-
normalized.put(key, normalizePrettierOption(key, value));
110+
normalized.put(key, normalizePrettierOption(value));
113111
}
114112
});
115113
return normalized;
116114
}
117115

118-
private Object normalizePrettierOption(String key, String value) {
116+
private Object normalizePrettierOption(String value) {
119117
if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false")) {
120118
return Boolean.parseBoolean(value);
121119
}

0 commit comments

Comments
 (0)