mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 17:49:52 +01:00
Fixup some formatting leftovers (JS)
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
"indent_with_tabs": false,
|
||||
"preserve_newlines": true,
|
||||
"max_preserve_newlines": 2,
|
||||
"end_with_newline": true,
|
||||
"jslint_happy": true
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user