다른 if-else의 then 브랜치 내 if-else 문을 하나로 병합합니다.