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

@@ -8,7 +8,7 @@ export function selectTorrents(options) {
let lastHashIndex;
// get the index of the last selected torrent.
options.torrentList.some(function(torrent, index) {
options.torrentList.some((torrent, index) => {
if (torrent.hash === lastHash) {
lastHashIndex = index;
return true;
@@ -16,7 +16,7 @@ export function selectTorrents(options) {
});
// get the index of the newly selected torrent.
options.torrentList.some(function(torrent, index) {
options.torrentList.some((torrent, index) => {
if (torrent.hash === options.hash) {
currentHashIndex = index;
return true;