Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Dec 2, 2024
1 parent 6cf41b7 commit 527244b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/client/handlers/VaultsSecretsRemove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {
SecretsRemoveHeaderMessage,
SecretIdentifierMessageTagged,
SuccessOrErrorMessage,
VaultNamesHeaderMessage,
} from '../types';
import type VaultManager from '../../vaults/VaultManager';
import type { FileSystemWritable } from '../../vaults/types';
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 527244b

Please sign in to comment.