You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(core): core:ui 의 when else 가 닫힌 타입의 새 분기를 삼킨다 — 3곳 #1771
AfternoteButton.kt:89 는 같은 파일 안에서도 어긋나 있다. 바로 위 containerColor 는 같은 enum 다섯 항목을 모두 적어 else 가 없는데, 아래 contentColor 만 else 로 닫혀 있다. 버튼 타입을 더하면 배경색은 컴파일 에러로 잡히고 글자색은 조용히 흰색이 된다.
완료 조건
세 곳에서 else 를 없애고 남은 항목을 이름으로 적는다
결과값은 그대로다. else 가 주던 값을 각 항목이 그대로 받는다
:core:ui:compileDebugKotlin · :core:ui:testDebugUnitTest · validateDebugScreenshotTest · ktlintCheck · :konsist:test 통과
같은 조사에서 애프터노트·온보딩의 세 곳도 걸렸지만 else 를 뗄 수 없는 자리다. subject 가 Throwable 이라 닫혀 있지 않고, 이미 sealed 루트로 좁힌 안쪽 when 이 exhaustive 하다(toAfternoteEditorError · shouldReportInReceiverFlow · 구글 로그인 실패 매핑). 손대지 않는다.
Activity