Skip to content

Commit

Permalink
[hotfix][hs] Deduplicate variables
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Oct 16, 2019
1 parent 59dd855 commit 41492c4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ public void run() {
if (jobArchives == null) {
continue;
}
boolean updateOverview = false;
int numFetchedArchives = 0;
for (FileStatus jobArchive : jobArchives) {
Path jobArchivePath = jobArchive.getPath();
Expand Down Expand Up @@ -200,7 +199,6 @@ public void run() {
fw.flush();
}
}
updateOverview = true;
numFetchedArchives++;
} catch (IOException e) {
LOG.error("Failure while fetching/processing job archive for job {}.", jobID, e);
Expand All @@ -223,7 +221,7 @@ public void run() {
}
}
}
if (updateOverview) {
if (numFetchedArchives > 0) {
updateJobOverview(webOverviewDir, webDir);
for (int x = 0; x < numFetchedArchives; x++) {
numArchivedJobs.countDown();
Expand Down

0 comments on commit 41492c4

Please sign in to comment.