Skip to content

Commit

Permalink
refactor: improve code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelJCamara committed Apr 30, 2024
1 parent 2a8dfc0 commit 36538b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/retry/execution/retry-policy-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import Result from "../../@common/result";
import executeHttpRequestWithRetryPolicy from "./retry-http-request-execution";

export default class RetryPolicyExecutor implements IPolicyExecutor {
private constructor(private retryPolicy: RetryPolicyType) {
this.retryPolicy = retryPolicy;
}
private constructor(private retryPolicy: RetryPolicyType) {}

async ExecutePolicyAsync<T>(httpRequest: Promise<any>): Promise<Result<T>> {
try {
Expand Down

0 comments on commit 36538b1

Please sign in to comment.