1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-17 16:53:20 +00:00

Remove unused key

This commit is contained in:
Hinton
2022-04-20 10:52:39 +02:00
parent 708bfcb026
commit f19e0bcbb5

View File

@@ -9,14 +9,10 @@ export class FolderView implements ITreeNodeObject {
name: string = null;
revisionDate: Date = null;
static async fromFolder(
cryptoService: CryptoService,
folder: Folder,
key?: SymmetricCryptoKey
): Promise<FolderView> {
static async fromFolder(cryptoService: CryptoService, folder: Folder): Promise<FolderView> {
const view = new FolderView();
view.id = folder.id;
view.name = await folder.name.decryptWithCryptoService(cryptoService, null, key);
view.name = await folder.name.decryptWithCryptoService(cryptoService);
view.revisionDate = folder.revisionDate;
return view;