Skip to content

Commit

Permalink
style: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jul 11, 2023
1 parent 8ecca92 commit 63c83ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/parse/parse-iwa-protobuf-archive-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const parseIwaProtobufArchiveInfo = (
const archiveInfoBufferLength = varint.decode(data, cursor);

// get the archive info buffer
const archiveInfoBufferStart = cursor + (varint.decode.bytes as number);
const archiveInfoBufferStart = cursor + varint.decode.bytes!;
const archiveInfoBufferEnd = archiveInfoBufferStart + archiveInfoBufferLength;
const archiveInfoBuffer = data.subarray(
archiveInfoBufferStart,
Expand Down
4 changes: 1 addition & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type proto from '../proto/proto';

export interface IwaData {
[archiveInfoIdentifier: string]: IwaArchiveInfoData;
}
export type IwaData = Record<string, IwaArchiveInfoData>;

export interface IwaArchiveInfoData {
archiveInfo: proto.TSP.ArchiveInfo;
Expand Down

0 comments on commit 63c83ff

Please sign in to comment.