Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
magibney committed Feb 28, 2024
1 parent f8d1519 commit 3a2d466
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion solr/core/src/java/org/apache/solr/storage/TeeDirectory.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ public void ensureValid() throws IOException {
public void removeAssociated() throws IOException {
synchronized (persistentFunction) {
if (associatedPaths != null) {
IOUtils.rm(associatedPaths.stream().map(Path::of).filter(p -> p.toFile().exists()).toArray(Path[]::new));
IOUtils.rm(
associatedPaths.stream()
.map(Path::of)
.filter(p -> p.toFile().exists())
.toArray(Path[]::new));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ static String getScopeName(String accessDir, String path) {
Path a = Path.of(accessDir);
Path relative = a.relativize(p);
if (relative.getNameCount() > 0) {
accessDir = a.resolve(relative.getName(0)).toString().concat("/TeeDirectoryFactory-access");
accessDir =
a.resolve(relative.getName(0)).toString().concat("/TeeDirectoryFactory-access");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.codahale.metrics.Gauge;
import com.codahale.metrics.Metric;

import java.io.Closeable;
import java.io.IOException;
import java.lang.reflect.Array;
Expand Down

0 comments on commit 3a2d466

Please sign in to comment.