Skip to content

Commit

Permalink
compiler fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineHeffron committed Jun 11, 2024
1 parent 18b91c6 commit 6a3c924
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
8 changes: 1 addition & 7 deletions src/horizon/trade_aggregation_call_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,7 @@ export class TradeAggregationCallBuilder extends CallBuilder<
* @returns {boolean} true if the resolution is allowed
*/
private isValidResolution(resolution: number): boolean {
// eslint-disable-next-line consistent-return
allowedResolutions.forEach((allowed) => {
if (allowed === resolution) {
return true;
}
});
return false;
return allowedResolutions.some((allowed) => allowed === resolution);
}

/**
Expand Down
2 changes: 0 additions & 2 deletions src/rpc/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import {
parseRawLedgerEntries,
parseRawEvents
} from './parsers';
import type { Config } from '../config';


export const SUBMIT_TRANSACTION_TIMEOUT = 60 * 1000;

Expand Down
2 changes: 1 addition & 1 deletion src/webauth/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ export function verifyChallengeTxSigners(
);
}

let clientSigningKey;
let clientSigningKey: string | undefined;
tx.operations.forEach((op) => {
if (op.type === "manageData" && op.name === "client_domain") {
if (clientSigningKey) {
Expand Down

0 comments on commit 6a3c924

Please sign in to comment.