Apply code formatting

This commit is contained in:
Chocobo1
2021-03-24 14:00:27 +08:00
parent 45465e994e
commit 121ff2b7be
19 changed files with 264 additions and 253 deletions

View File

@@ -84,7 +84,7 @@ MochaUI.extend({
else {
new Request.JSON({
url: 'api/v2/torrents/uploadLimit',
noCache : true,
noCache: true,
method: 'post',
data: {
hashes: hashes.join('|')
@@ -92,7 +92,7 @@ MochaUI.extend({
onSuccess: function(data) {
if (data) {
let up_limit = data[hashes[0]];
for(const key in data)
for (const key in data)
if (up_limit != data[key]) {
up_limit = 0;
break;
@@ -186,7 +186,7 @@ MochaUI.extend({
else {
new Request.JSON({
url: 'api/v2/torrents/downloadLimit',
noCache : true,
noCache: true,
method: 'post',
data: {
hashes: hashes.join('|')
@@ -194,7 +194,7 @@ MochaUI.extend({
onSuccess: function(data) {
if (data) {
let dl_limit = data[hashes[0]];
for(const key in data)
for (const key in data)
if (dl_limit != data[key]) {
dl_limit = 0;
break;