17152: Avoids returning for code consistency reasons. 17152-always-preserve-collection-versions
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 11 Dec 2020 22:26:36 +0000 (19:26 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 11 Dec 2020 22:26:36 +0000 (19:26 -0300)
Other webdav funcs don't return values, and there's no client code expecting
an answer from that func.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

src/services/collection-service/collection-service.ts

index 9227393326576ab524030ac20da1d5858336c657..04c01a113e8852a02be4c034d4334bdc236bdc78 100644 (file)
@@ -70,7 +70,7 @@ export class CollectionService extends TrashableResourceService<CollectionResour
             `c=${collectionUuid}${oldPath}`,
             `c=${collectionUuid}${encodeURI(newPath)}`
         );
-        return await this.update(collectionUuid, { preserveVersion: true });
+        await this.update(collectionUuid, { preserveVersion: true });
     }
 
     extendFileURL = (file: CollectionDirectory | CollectionFile) => {