Skip to content

Commit

Permalink
feat: update tendermint-ssync
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Jul 3, 2024
1 parent 25fa879 commit 0163771
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions integrations/tendermint-ssync/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,7 @@ export default class TendermintSSync implements IRuntime {
`${this.config.api}/list_snapshots`
);

if (!snapshots) {
throw new Error(`404: Snapshot with height ${height} not found`);
}

const snapshot: ISnapshot = snapshots.find(
const snapshot: ISnapshot = (snapshots || []).find(
(s: ISnapshot) => +s.height === height
);

Expand Down

0 comments on commit 0163771

Please sign in to comment.