Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws committed Mar 3, 2024
1 parent 0d71183 commit be45f26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/keyvalue/v1/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
import { KvStoreClient } from '@nitric/proto/kvstore/v1/kvstore_grpc_pb';
import { fromGrpcError } from '../../errors';
import { Struct } from 'google-protobuf/google/protobuf/struct_pb';
import { Readable, Transform } from 'stream';
import { Transform } from 'stream';
import { ServiceError } from '@grpc/grpc-js';

export type ValueStructure = Record<string, any>;
Expand Down Expand Up @@ -135,7 +135,7 @@ export class StoreRef<T extends ValueStructure> {
* @param prefix The prefix to filter keys by, if not provided all keys will be returned
* @returns an async iterable of keys
*/
public keys(prefix: string = ''): AsyncIterable<string> {
public keys(prefix = ''): AsyncIterable<string> {
const store = new Store();
store.setName(this.name);
const request = new KvStoreScanKeysRequest();
Expand All @@ -146,7 +146,7 @@ export class StoreRef<T extends ValueStructure> {

const transform = new Transform({
objectMode: true,
transform(result: KvStoreScanKeysResponse, encoding, callback) {
transform(result: KvStoreScanKeysResponse, _, callback) {
callback(null, result.getKey());
},
});
Expand Down

0 comments on commit be45f26

Please sign in to comment.