diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 17:04:57 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 17:05:55 +0200 |
commit | 075f16caac5236cb04c98ae7b3a989766d764bb3 (patch) | |
tree | 9a30024aa771735a28d83d9a166033b82dbcaf60 /server/models/request/request.ts | |
parent | 4e979c3e1b81f4762025d9db3052b1f70774b3bb (diff) | |
download | PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.gz PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.zst PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.zip |
Remove "function" in favor of () => {}
Diffstat (limited to 'server/models/request/request.ts')
-rw-r--r-- | server/models/request/request.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/request/request.ts b/server/models/request/request.ts index c3ce2cd4e..b4c0226fa 100644 --- a/server/models/request/request.ts +++ b/server/models/request/request.ts | |||
@@ -127,8 +127,8 @@ removeWithEmptyTo = function () { | |||
127 | function groupAndTruncateRequests (requests: RequestInstance[], limitRequestsPerPod: number) { | 127 | function groupAndTruncateRequests (requests: RequestInstance[], limitRequestsPerPod: number) { |
128 | const requestsGrouped: RequestsGrouped = {} | 128 | const requestsGrouped: RequestsGrouped = {} |
129 | 129 | ||
130 | requests.forEach(function (request) { | 130 | requests.forEach(request => { |
131 | request.Pods.forEach(function (pod) { | 131 | request.Pods.forEach(pod => { |
132 | if (!requestsGrouped[pod.id]) requestsGrouped[pod.id] = [] | 132 | if (!requestsGrouped[pod.id]) requestsGrouped[pod.id] = [] |
133 | 133 | ||
134 | if (requestsGrouped[pod.id].length < limitRequestsPerPod) { | 134 | if (requestsGrouped[pod.id].length < limitRequestsPerPod) { |