From 527244b888765a159f3e08dde26a1719bfa35cc3 Mon Sep 17 00:00:00 2001 From: Aryan Jassal Date: Tue, 3 Dec 2024 10:50:24 +1100 Subject: [PATCH] fix: build --- src/client/handlers/VaultsSecretsRemove.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/handlers/VaultsSecretsRemove.ts b/src/client/handlers/VaultsSecretsRemove.ts index e6dbe7f32..c77dce961 100644 --- a/src/client/handlers/VaultsSecretsRemove.ts +++ b/src/client/handlers/VaultsSecretsRemove.ts @@ -6,7 +6,6 @@ import type { SecretsRemoveHeaderMessage, SecretIdentifierMessageTagged, SuccessOrErrorMessage, - VaultNamesHeaderMessage, } from '../types'; import type VaultManager from '../../vaults/VaultManager'; import type { FileSystemWritable } from '../../vaults/types'; @@ -38,9 +37,8 @@ class VaultsSecretsRemove extends DuplexHandler< // Extracts the header message from the iterator const headerMessage = await (async () => { const iterator = input[Symbol.asyncIterator](); - const header: VaultNamesHeaderMessage | SecretIdentifierMessageTagged = ( - await iterator.next() - ).value; + const header: SecretsRemoveHeaderMessage | SecretIdentifierMessageTagged = + (await iterator.next()).value; if (header == null || header.type !== 'VaultNamesHeaderMessage') { throw new clientErrors.ErrorClientInvalidHeader(); }