Skip to content

Commit 020c414

Browse files
committed
chore: formatting
1 parent 9e4cb63 commit 020c414

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/Common/Common.service.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ import {
2222
sanitizeUserApprovalList,
2323
stringComparatorBySortOrder,
2424
} from '@Shared/Helpers'
25-
import {
26-
PolicyBlockInfo,
27-
RuntimeParamsAPIResponseType,
28-
RuntimePluginVariables,
29-
} from '@Shared/types'
25+
import { PolicyBlockInfo, RuntimeParamsAPIResponseType, RuntimePluginVariables } from '@Shared/types'
3026
import { GitProviderType, ROUTES } from './Constants'
3127
import { getUrlWithSearchParams, sortCallback } from './Helper'
3228
import {
@@ -268,7 +264,7 @@ export const parseRuntimeParams = (response: RuntimeParamsAPIResponseType): Runt
268264
const runtimeParams = (response?.runtimePluginVariables ?? []).map<RuntimePluginVariables>((variable) => ({
269265
...variable,
270266
defaultValue: variable.value,
271-
stepVariableId: variable.stepVariableId || Math.floor(new Date().valueOf() * Math.random())
267+
stepVariableId: variable.stepVariableId || Math.floor(new Date().valueOf() * Math.random()),
272268
}))
273269

274270
runtimeParams.push(...envVariables)
@@ -528,14 +524,15 @@ export const getAppsInfoForEnv = async ({ envId, appIds }: GetAppsInfoForEnvProp
528524

529525
return {
530526
appCount: response.result?.appCount ?? 0,
531-
apps: (response.result?.apps ?? []).reduce<AppMeta[]>((agg, {appId, appName, appStatus}) => {
527+
apps: (response.result?.apps ?? []).reduce<AppMeta[]>((agg, { appId, appName, appStatus }) => {
532528
if (!appId) {
533529
return agg
534530
}
535531
agg.push({
536-
appId, appName: appName || '',
532+
appId,
533+
appName: appName || '',
537534
appStatus: appStatus || StatusType.UNKNOWN,
538535
})
539536
}, []),
540537
}
541-
}
538+
}

0 commit comments

Comments
 (0)