Skip to content

Commit

Permalink
feat(#2217): simplify checking prerequisites for RegisterMojo
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Jul 7, 2023
1 parent e42635e commit f7a4a18
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.jcabi.log.Logger;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collection;
import java.util.Set;
Expand Down Expand Up @@ -157,13 +156,6 @@ private void verifyPrerequisite() {
throw new IllegalArgumentException(
String.format("sourcesDir is null. Please specify a valid sourcesDir for %s", this)
);
} else if (!Files.exists(this.sourcesDir.toPath())) {
throw new IllegalArgumentException(
String.format(
"sourcesDir %s does not exist. Please specify a valid sourceDir for %s",
this.sourcesDir, this
)
);
}
}

Expand Down

0 comments on commit f7a4a18

Please sign in to comment.