mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 22:25:16 +00:00
Switch entirely to fat arrow functions
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
var util = require('util');
|
||||
|
||||
var FormatUtil = {
|
||||
percentComplete: function(numerator, denominator) {
|
||||
percentComplete: (numerator, denominator) => {
|
||||
|
||||
},
|
||||
|
||||
eta: function(rate, completed, total) {
|
||||
|
||||
eta: (rate, completed, total) => {
|
||||
|
||||
},
|
||||
|
||||
parsePeers: function(string) {
|
||||
parsePeers: (string) => {
|
||||
var markerPosition = string.indexOf('@!@');
|
||||
return string.substr(0, markerPosition);
|
||||
},
|
||||
|
||||
status: function(isHashChecking, isComplete, isOpen, uploadRate, downloadRate, state, message) {
|
||||
status: (isHashChecking, isComplete, isOpen, uploadRate, downloadRate, state, message) => {
|
||||
var torrentStatus = [];
|
||||
|
||||
if (isHashChecking === '1') {
|
||||
|
||||
Reference in New Issue
Block a user