From 3ba0b9df150ff92a3afeb626e19d1e2cdc0690ca Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sun, 17 Feb 2019 17:51:13 +0300 Subject: [PATCH] Fixup some formatting leftovers (JS) --- .jsbeautifyrc | 1 + web/javascript/remote.js | 2 +- web/javascript/torrent-row.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.jsbeautifyrc b/.jsbeautifyrc index ea296614b..87f70e067 100644 --- a/.jsbeautifyrc +++ b/.jsbeautifyrc @@ -5,5 +5,6 @@ "indent_with_tabs": false, "preserve_newlines": true, "max_preserve_newlines": 2, + "end_with_newline": true, "jslint_happy": true } diff --git a/web/javascript/remote.js b/web/javascript/remote.js index bbfc9939a..21714c226 100644 --- a/web/javascript/remote.js +++ b/web/javascript/remote.js @@ -74,7 +74,7 @@ TransmissionRemote.prototype = { sendRequest: function (data, callback, context, async) { var remote = this; - if (typeof async != 'boolean') { + if (typeof (async) != 'boolean') { async = true; }; diff --git a/web/javascript/torrent-row.js b/web/javascript/torrent-row.js index 5cd3a19b4..81e1bb528 100644 --- a/web/javascript/torrent-row.js +++ b/web/javascript/torrent-row.js @@ -107,7 +107,7 @@ TorrentRendererHelper.formatDL = function (t) { return '▼' + Transmission.fmt.speedBps(t.getDownloadSpeed()); }; -TorrentRendererHelper.formatETA = function(t) { +TorrentRendererHelper.formatETA = function (t) { var eta = t.getETA(); if (eta < 0 || eta >= (999 * 60 * 60)) { return "";