Skip to content

Commit

Permalink
refactor: 2번 문제 early return으로 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 authored and LuizyHub committed Nov 30, 2023
1 parent ffc1c85 commit ca70d2a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/backend/src/quiz-wizard/quiz-wizard.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ export class QuizWizardService {
}

async checkCondition2(containerId: string): Promise<boolean> {
return !(
(await this.magic.getConfig(containerId, 'name')) === 'MergeMaster' ||
if ((await this.magic.getConfig(containerId, 'name')) === 'MergeMaster')
return false;
if (
(await this.magic.getConfig(containerId, 'email')) ===
'[email protected]'
);
'[email protected]'
)
return false;

return true;
}

async checkCondition3(containerId: string): Promise<boolean> {
Expand Down

0 comments on commit ca70d2a

Please sign in to comment.