aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/rest
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-10 11:51:51 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-10 11:52:45 +0100
commit7af75da41ba32451c3e9564714b05b506bdd881d (patch)
tree9f308d082acb8cbd045c3e378751a52d69f37c8c /client/src/app/shared/rest
parentf6f7dfee01e8b7ddf62d2549b8f381d0b12b590e (diff)
downloadPeerTube-7af75da41ba32451c3e9564714b05b506bdd881d.tar.gz
PeerTube-7af75da41ba32451c3e9564714b05b506bdd881d.tar.zst
PeerTube-7af75da41ba32451c3e9564714b05b506bdd881d.zip
Client: fix lint
Diffstat (limited to 'client/src/app/shared/rest')
-rw-r--r--client/src/app/shared/rest/rest-data-source.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/rest/rest-data-source.ts b/client/src/app/shared/rest/rest-data-source.ts
index 847dd7c56..1def38c73 100644
--- a/client/src/app/shared/rest/rest-data-source.ts
+++ b/client/src/app/shared/rest/rest-data-source.ts
@@ -8,14 +8,14 @@ export class RestDataSource extends ServerDataSource {
8 endPoint: endpoint, 8 endPoint: endpoint,
9 sortFieldKey: 'sort', 9 sortFieldKey: 'sort',
10 dataKey: 'data' 10 dataKey: 'data'
11 } 11 };
12 12
13 super(http, options); 13 super(http, options);
14 } 14 }
15 15
16 protected extractTotalFromResponse(res) { 16 protected extractTotalFromResponse(res) {
17 const rawData = res.json(); 17 const rawData = res.json();
18 return rawData ? parseInt(rawData.total): 0; 18 return rawData ? parseInt(rawData.total) : 0;
19 } 19 }
20 20
21 protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { 21 protected addSortRequestOptions(requestOptions: RequestOptionsArgs) {