Skip to content

Commit

Permalink
content_delegate.js: Eliminate de_caseid variable
Browse files Browse the repository at this point in the history
We don't need to define a temp. variable to avoid dereferencing an
object member in 3 adjacent lines.
  • Loading branch information
johnhawkinson committed Dec 12, 2017
1 parent 36110af commit 984338e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions content_delegate.js
Expand Up @@ -49,10 +49,9 @@ ContentDelegate.prototype.findAndStorePacerDocIds = function() {

let onclick = link.getAttribute('onclick');
let goDLS = PACER.parseGoDLSFunction(onclick);
let de_caseid = goDLS.de_caseid;
if (de_caseid) {
docsToCases[pacer_doc_id] = de_caseid;
debug(3, 'Y doc ' + pacer_doc_id + ' to ' + de_caseid);
if (goDLS.de_caseid) {
docsToCases[pacer_doc_id] = goDLS.de_caseid;
debug(3, 'Y doc ' + pacer_doc_id + ' to ' + goDLS.de_caseid);
} else if (page_pacer_case_id) {
docsToCases[pacer_doc_id] = page_pacer_case_id;
debug(3,'X doc ' + pacer_doc_id + ' to '
Expand Down

0 comments on commit 984338e

Please sign in to comment.