From 7af75da41ba32451c3e9564714b05b506bdd881d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Feb 2017 11:51:51 +0100 Subject: Client: fix lint --- client/src/app/shared/rest/rest-data-source.ts | 4 ++-- client/src/app/shared/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/shared') 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 { endPoint: endpoint, sortFieldKey: 'sort', dataKey: 'data' - } + }; super(http, options); } protected extractTotalFromResponse(res) { const rawData = res.json(); - return rawData ? parseInt(rawData.total): 0; + return rawData ? parseInt(rawData.total) : 0; } protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts index 1dd6f96f0..5ab41fe5a 100644 --- a/client/src/app/shared/utils.ts +++ b/client/src/app/shared/utils.ts @@ -3,7 +3,7 @@ import { DatePipe } from '@angular/common'; export class Utils { static dateToHuman(date: String) { - return new DatePipe('en').transform(date, 'medium') + return new DatePipe('en').transform(date, 'medium'); } static getRowDeleteButton() { -- cgit v1.2.3