refactor: convert function expressions to declarations (#4926)

This commit is contained in:
Vladislav Shkodin
2021-02-08 20:01:21 +02:00
committed by GitHub
parent c0236536dd
commit 141a2eba56
241 changed files with 3444 additions and 2933 deletions

View File

@ -161,7 +161,7 @@ function delay(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms));
}
const getChangeItem = (item: AzureCommitItem) => {
function getChangeItem(item: AzureCommitItem) {
switch (item.action) {
case AzureCommitChangeType.ADD:
return {
@ -195,7 +195,7 @@ const getChangeItem = (item: AzureCommitItem) => {
default:
return {};
}
};
}
type AzureCommitItem = {
action: AzureCommitChangeType;

View File

@ -33,7 +33,7 @@ import {
const MAX_CONCURRENT_DOWNLOADS = 10;
const parseAzureRepo = (config: Config) => {
function parseAzureRepo(config: Config) {
const { repo } = config.backend;
if (typeof repo !== 'string') {
@ -51,7 +51,7 @@ const parseAzureRepo = (config: Config) => {
project,
repoName,
};
};
}
export default class Azure implements Implementation {
lock: AsyncLock;