Skip to content

Commit 032c937

Browse files
committed
fix(cu): style modification
1 parent 393d812 commit 032c937

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

servers/cu/src/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ export const createApis = async (ctx) => {
532532
}),
533533
DRY_RUN_DEFAULT_MAX_PROCESS_AGE: ctx.DRY_RUN_DEFAULT_MAX_PROCESS_AGE,
534534
DRY_RUN_PROCESS_CACHE_TTL: ctx.DRY_RUN_PROCESS_CACHE_TTL,
535-
DRY_RUN_RESULT_MAX_AGE: ctx.DRY_RUN_RESULT_MAX_AGE,
535+
DRY_RUN_RESULT_MAX_AGE: ctx.DRY_RUN_RESULT_MAX_AGE
536536
})
537537

538538
/**

servers/cu/src/domain/api/dryRun.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export function dryRunWith (env) {
175175
}
176176

177177
return ({ processId, messageTxId, maxProcessAge = DRY_RUN_DEFAULT_MAX_PROCESS_AGE, dryRun }) => {
178-
const dryRunHash = cyrb53(JSON.stringify(dryRun));
178+
const dryRunHash = cyrb53(JSON.stringify(dryRun))
179179
const cached = dryRunResultCache.get(dryRunHash)
180180
if (cached && new Date().getTime() - cached.age <= DRY_RUN_RESULT_MAX_AGE) {
181181
logger.debug(
@@ -249,8 +249,8 @@ export function dryRunWith (env) {
249249
return evaluate({ ...ctx, dryRun: true, messages: Readable.from(dryRunMessage()) })
250250
})
251251
.map((res) => {
252-
let omitted = omit(['Memory'], res.output)
253-
let cached ={ age: new Date().getTime(), ctx: omitted }
252+
const omitted = omit(['Memory'], res.output)
253+
const cached ={ age: new Date().getTime(), ctx: omitted }
254254
dryRunResultCache.set(dryRunHash, cached, DRY_RUN_RESULT_MAX_AGE)
255255
return omitted
256256
})

0 commit comments

Comments
 (0)