Skip to content

Commit

Permalink
refactor: Spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider and TeamModerne committed Sep 26, 2023
1 parent 2c11b28 commit 8308232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/openrewrite/LanguageComposition.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static class Accumulator {
private static String containingFolderPath(SourceFile s) {
String sourcePath = PathUtils.separatorsToUnix(s.getSourcePath().toString());
int lastSlash = sourcePath.lastIndexOf('/');
if(lastSlash == -1) {
if (lastSlash == -1) {
return "";
}
return s.getSourcePath().toString().substring(0, lastSlash);
Expand Down Expand Up @@ -264,7 +264,7 @@ public TreeVisitor<?, ExecutionContext> getScanner(Accumulator acc) {
s.getClass().getName(),
genericLineCount,
hasParseFailure));
} else if(s instanceof ParseError) {
} else if (s instanceof ParseError) {
Counts parseErrorCounts = acc.getFolderToLanguageToCounts()
.computeIfAbsent(folderPath, k -> new HashMap<>())
.computeIfAbsent("Parse error", k -> new Counts());
Expand Down

0 comments on commit 8308232

Please sign in to comment.