From: Michal Klobukowski Date: Mon, 13 Aug 2018 11:59:06 +0000 (+0200) Subject: Remove unused type annotation X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/ea4ad5a3f95aa8c6fa36e4f02b50e19de3e7b8c4 Remove unused type annotation Feature #13990 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- diff --git a/src/services/collection-service/collection-service.ts b/src/services/collection-service/collection-service.ts index 7e4d80460e..4bb93a4a62 100644 --- a/src/services/collection-service/collection-service.ts +++ b/src/services/collection-service/collection-service.ts @@ -52,7 +52,7 @@ export class CollectionService extends CommonResourceService .slice(1) // omit first element which is collection itself .map(element => { const name = getTagValue(element, 'D:displayname', ''); - const size = parseInt(getTagValue(element, 'D:getcontentlength', '0') as string, 10); + const size = parseInt(getTagValue(element, 'D:getcontentlength', '0'), 10); const pathname = getTagValue(element, 'D:href', ''); const directory = pathname && pathname.replace(/\/c=[0-9a-zA-Z\-]*/, '').replace(`/${name || ''}`, ''); const href = this.webdavClient.defaults.baseURL + pathname + '?api_token=' + this.authService.getApiToken();