flake8
passed.
JSHint
passed.
Review Request #9356 — Created Nov. 9, 2017 and submitted
This fixes one serious bug (in some browsers) where a missing variable
definition in the upload diff view was causing a javascript crash,
breaking the Update -> Update Diff action. While I was fixing that up, I
decided to fix up the other things that jshint complained about.