projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15672: Fixes warnings
[arvados-workbench2.git]
/
src
/
services
/
collection-files-service
/
collection-manifest-parser.ts
diff --git
a/src/services/collection-files-service/collection-manifest-parser.ts
b/src/services/collection-files-service/collection-manifest-parser.ts
index bed26783ef741f0ddcc1106ee313b770ffcf3354..d564f33ec03a13634d11fb84052ef3e814ea6ba7 100644
(file)
--- a/
src/services/collection-files-service/collection-manifest-parser.ts
+++ b/
src/services/collection-files-service/collection-manifest-parser.ts
@@
-2,12
+2,12
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { KeepManifestStream, KeepManifestStreamFile, KeepManifest } from "
../..
/models/keep-manifest";
+import { KeepManifestStream, KeepManifestStreamFile, KeepManifest } from "
~
/models/keep-manifest";
/**
* Documentation [http://doc.arvados.org/api/storage.html](http://doc.arvados.org/api/storage.html)
*/
/**
* Documentation [http://doc.arvados.org/api/storage.html](http://doc.arvados.org/api/storage.html)
*/
-export const parseKeepManifestText = (text: string) =>
+export const parseKeepManifestText
: (text: string) => KeepManifestStream[]
= (text: string) =>
text
.split(/\n/)
.filter(streamText => streamText.length > 0)
text
.split(/\n/)
.filter(streamText => streamText.length > 0)
@@
-52,4
+52,4
@@
const parseFile = (token: string): KeepManifestStreamFile => {
};
const stringifyFile = (file: KeepManifestStreamFile) =>
};
const stringifyFile = (file: KeepManifestStreamFile) =>
- `${file.position}:${file.size}:${file.name}`;
\ No newline at end of file
+ `${file.position}:${file.size}:${file.name}`;