Switch entirely to fat arrow functions

This commit is contained in:
John Furrow
2016-03-19 12:46:11 +01:00
parent 14ed9bb1f5
commit e77dfac3ae
33 changed files with 145 additions and 159 deletions

View File

@@ -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') {