Fixup some formatting leftovers (JS)

This commit is contained in:
Mike Gelfand 2019-02-17 17:51:13 +03:00
parent 7aa12a025d
commit 3ba0b9df15
3 changed files with 3 additions and 2 deletions

View File

@ -5,5 +5,6 @@
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 2,
"end_with_newline": true,
"jslint_happy": true
}

View File

@ -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;
};

View File

@ -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 "";