Skip to content

Commit

Permalink
Fixing typo (#6784)
Browse files Browse the repository at this point in the history
  • Loading branch information
fruby authored and GitHubSriramB committed Mar 26, 2018
1 parent 331aed9 commit 151fa88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tasks/DownloadBuildArtifacts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ async function main(): Promise<void> {

function executeWithRetries(operationName: string, operation: () => Promise<any>, retryCount): Promise<any> {
var executePromise = new Promise((resolve, reject) => {
executeWithRetriesImplementaion(operationName, operation, retryCount, resolve, reject);
executeWithRetriesImplementation(operationName, operation, retryCount, resolve, reject);
});

return executePromise;
}

function executeWithRetriesImplementaion(operationName: string, operation: () => Promise<any>, currentRetryCount, resolve, reject) {
function executeWithRetriesImplementation(operationName: string, operation: () => Promise<any>, currentRetryCount, resolve, reject) {
operation().then((result) => {
resolve(result);
}).catch((error) => {
Expand All @@ -292,7 +292,7 @@ function executeWithRetriesImplementaion(operationName: string, operation: () =>
else {
console.log(tl.loc('RetryingOperation', operationName, currentRetryCount));
currentRetryCount = currentRetryCount - 1;
setTimeout(() => executeWithRetriesImplementaion(operationName, operation, currentRetryCount, resolve, reject), 4 * 1000);
setTimeout(() => executeWithRetriesImplementation(operationName, operation, currentRetryCount, resolve, reject), 4 * 1000);
}
});
}
Expand Down

0 comments on commit 151fa88

Please sign in to comment.