feat: eslint 적용 및 관련 코드 일괄 수정

This commit is contained in:
2026-01-05 15:46:47 +00:00
parent cb312f02b3
commit c965b1120f
387 changed files with 39808 additions and 38800 deletions
+2 -6
View File
@@ -6,10 +6,7 @@ import { processBattleSimJob } from './processor.js';
import { RedisBattleSimTransport } from './redisTransport.js';
import type { BattleSimJob } from './types.js';
type RedisBlPopResult =
| { key: string; element: string }
| [string, string]
| null;
type RedisBlPopResult = { key: string; element: string } | [string, string] | null;
const parseBlPopValue = (result: RedisBlPopResult): string | null => {
if (!result) {
@@ -57,8 +54,7 @@ export const runBattleSimWorker = async (): Promise<void> => {
const result = processBattleSimJob(job.payload);
await transport.pushResult(job.jobId, result);
} catch (error) {
const reason =
error instanceof Error ? error.message : '전투 시뮬레이션 오류';
const reason = error instanceof Error ? error.message : '전투 시뮬레이션 오류';
await transport.pushResult(job.jobId, {
result: false,
reason,