Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBien committed Oct 25, 2019
1 parent 9e127ee commit 620738b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ static void checkForChanges(ScheduledExecutorService scheduler, Path dir, Runnab
while (true) {
try {
final long previous = initialStamp;
changeDetected = scheduler.schedule(() -> detectModification(dir, previous), POLLING_INTERVALL, TimeUnit.MILLISECONDS).get();
changeDetected = scheduler.
schedule(() -> detectModification(dir, previous), POLLING_INTERVALL, TimeUnit.MILLISECONDS).
get();
} catch (InterruptedException | ExecutionException ex) {
throw new IllegalStateException("Scheduler error", ex);
}
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/airhacks/wad/control/PreBuildChecks.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ static String load(InputStream stream) {
}

static void validateDeploymentDirectories(Set<Path> path) {
long invalidDirectories = path.stream().map(PreBuildChecks::validateDeploymentDirectory).filter(valid -> valid == false).count();
long invalidDirectories = path.stream().
map(PreBuildChecks::validateDeploymentDirectory).
filter(valid -> valid == false).
count();
if (invalidDirectories != 0) {
exit();
}
Expand Down

0 comments on commit 620738b

Please sign in to comment.