Skip to content

Commit

Permalink
#2441: formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
levBagryansky committed Aug 30, 2023
1 parent 36c299e commit aa34928
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions eo-maven-plugin/src/main/java/org/eolang/maven/BinarizeMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ private void build(final File project) throws IOException {
);
}
if (BinarizeMojo.sameProject(
project.toPath(), this.cache
project.toPath(),
this.cache
.resolve("Lib")
.resolve(project.getName())
)) {
Expand All @@ -170,7 +171,7 @@ private void build(final File project) throws IOException {
)
);
try (
VerboseProcess proc = new VerboseProcess(
final VerboseProcess proc = new VerboseProcess(
new ProcessBuilder("cargo", "build")
.directory(project)
)
Expand Down Expand Up @@ -222,15 +223,11 @@ private static boolean sameProject(final Path src, final Path cached) {
private static boolean sameFile(final Path src, final Path cached) {
return cached.toFile().exists() && BinarizeMojo.uncomment(
new UncheckedText(
new TextOf(
src
)
new TextOf(src)
).asString()
).equals(
new UncheckedText(
new TextOf(
cached
)
new TextOf(cached)
).asString()
);
}
Expand Down

0 comments on commit aa34928

Please sign in to comment.