Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chamil321 committed Jul 31, 2020
1 parent 96c3b5a commit 909ac9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions distributor/src/distributor/website.bal
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ service mediaWebsite on mediaListener {
return caller->ok(r.jsonResult);
} else if format == "html" {
http:Response hr = new;
boolean sorted = (r.jsonResult.'type == RN_SI || r.jsonResult.'type == RN_V ||
r.jsonResult.'type == RN_VS || r.jsonResult.'type == RN_VSN) ? true : false;
string resultType = r.jsonResult.'type.toString();
boolean sorted = (resultType == RN_SI || resultType == RN_V || resultType == RN_VS ||
resultType == RN_VSN) ? true : false;
hr.setTextPayload(<@untainted>check generateHtml(election, r.jsonResult, sorted));
hr.setContentType("text/html");
return caller->ok(hr);
Expand Down

0 comments on commit 909ac9c

Please sign in to comment.