summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-15 11:33:27 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-03-16 20:25:24 -0700
commit0a25b32ca07c996c7fccc4cecfa50c58081de345 (patch)
tree41f23e2a2f0d6294c29bdb76577abfc206a46ef8
parentd04a018020a26245e030ed1c5f88a6543dc39e8f (diff)
downloadsubsurface-0a25b32ca07c996c7fccc4cecfa50c58081de345.tar.gz
Cleanup: deal with lgtm.com Alerts
Small, obvious fixes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--theme/list_lib.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js
index c89527517..143bfd492 100644
--- a/theme/list_lib.js
+++ b/theme/list_lib.js
@@ -174,7 +174,6 @@ function setNumberOfDives(e)
{
var value = e.options[e.selectedIndex].value;
sizeofpage = parseInt(value, 10);
- var end = start + sizeofpage - 1;
viewInPage();
}
@@ -682,7 +681,6 @@ var statsShows;
*/
function toggleStats()
{
- var stats_button = document.getElementById('stats_button');
if (statsShows) {
statsShows = false;
document.getElementById('diveListPanel').style.display = 'block';
@@ -1182,7 +1180,7 @@ function int_to_time(n)
function float_to_deg(flt){
var deg = 0 | flt;
- flt = (flt < 0 ? flt =- flt : flt);
+ flt = (flt < 0 ? - flt : flt);
var min = 0 | flt % 1 * 60;
var sec = (0 | flt * 60 % 1 * 6000) / 100;
return deg + "&deg; " + min + "' " + sec + "\"";