Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ownue
left a comment
There was a problem hiding this comment.
수고하셨습니다! 리뷰 한 번만 확인해주세요 ㅎ.ㅎ
| if (cached != null) { | ||
| RandomLetterCacheValue v = fromJson(cached); |
There was a problem hiding this comment.
raw 파일을 열어서 fromJson이라는 코드를 확인했는데, 지금 파싱이 실패하면 GeneralException(INTERNAL_ERROR)를 throw 하고 있더라구요! 그런데 여기서는 깨진 캐시면 삭제 후 재생성을 목표로 하고 있어서 오류가 날 것 같아요! (파싱이 깨지면 v == null 경로로 가지 않고 그냥 500 에러 반환)
fromJson 코드를 에러로 throw 하지 말고 null을 반환하게 하는 건 어떨까요!?
There was a problem hiding this comment.
헉 맞네요!! 수정하겠습니다
📌 PR 개요
🔗 관련 이슈
🛠 변경 사항
✅ 체크리스트