Skip to content

Commit 6dca64f

Browse files
committed
fix: change var to let for isOrphan in lastChanceCheckOrphanRunner function
1 parent a245b2b commit 6dca64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambdas/functions/control-plane/src/scale-runners/scale-down.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ async function lastChanceCheckOrphanRunner(runner: RunnerList): Promise<boolean>
226226
const runnerId = parseInt(runner.runnerId || '0');
227227
const ec2Instance = runner as RunnerInfo;
228228
const state = await getGitHubSelfHostedRunnerState(client, ec2Instance, runnerId);
229-
var isOrphan = false;
229+
let isOrphan = false;
230230
logger.debug(
231231
`Runner '${runner.instanceId}' is '${state.status}' and is currently '${state.busy ? 'busy' : 'idle'}'.`,
232232
);

0 commit comments

Comments
 (0)