Skip to content

Commit

Permalink
Removing some un-necessary logic. (linkedin#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajagopr authored and akshayrai committed Jun 8, 2016
1 parent b4ca1b9 commit 4ce5f18
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/controllers/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@ public static Result search() {
+ AppHeuristicResult.TABLE.APP_HEURISTIC_RESULT_DETAILS, "*")
.where()
.idEq(appId).findUnique();
if (result != null) {
return ok(searchPage.render(null, jobDetails.render(result)));
} else {
return ok(searchPage.render(null, jobDetails.render(null)));
}
return ok(searchPage.render(null, jobDetails.render(result)));
} else if (flowExecId != null && !flowExecId.isEmpty()) {
List<AppResult> results = AppResult.find
.select(AppResult.getSearchFields() + "," + AppResult.TABLE.JOB_EXEC_ID)
Expand Down

0 comments on commit 4ce5f18

Please sign in to comment.