Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Sep 24, 2023
1 parent ccf9ecb commit 13ae5f8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/Compression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { content as proto } from '@xmtp/proto'
//
// Compression
//

export async function decompress(
encoded: proto.EncodedContent,
maxSize: number
Expand Down
2 changes: 1 addition & 1 deletion src/keystore/SnapKeystore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function getResponse<T extends keyof Keystore>(
req: Uint8Array | null,
meta: SnapMeta,
snapId: string
): Promise<typeof apiDefs[T]['res']> {
): Promise<(typeof apiDefs)[T]['res']> {
return snapRPC(method, apiDefs[method], req, meta, snapId)
}

Expand Down
13 changes: 0 additions & 13 deletions src/types/streams-polyfill/index.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/utils/keystore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { WithoutUndefined } from './typedefs'
export const getResultOrThrow = <
T extends
| keystore.DecryptResponse_Response
| keystore.EncryptResponse_Response
| keystore.EncryptResponse_Response,
>(
response: T
): WithoutUndefined<NonNullable<T['result']>> => {
Expand Down
4 changes: 1 addition & 3 deletions test/keystore/persistence/EncryptedPersistence.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ describe('EncryptedPersistence', () => {
const goodData = SignedEciesCiphertext.fromBytes(encryptedBytes!)
const signedBySomeoneElse = await SignedEciesCiphertext.create(
goodData.ciphertext,
(
await PrivateKeyBundleV1.generate()
).identityKey
(await PrivateKeyBundleV1.generate()).identityKey
)
await persistence.setItem(TEST_KEY, signedBySomeoneElse.toBytes())

Expand Down

0 comments on commit 13ae5f8

Please sign in to comment.