-
Notifications
You must be signed in to change notification settings - Fork 18
251114_04_이영현 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
space-cap
wants to merge
1
commit into
SurvivalCodingCampus:master
Choose a base branch
from
space-cap:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
251114_04_이영현 #18
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| package com.survivalcoding | ||
|
|
||
| class Lee { | ||
| } | ||
|
|
||
| fun main() { | ||
| println("한글") | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
시간 범위 누락으로 인한 로직 오류
조건 연산자를
||에서&&로 변경한 것은 올바르지만, 시간 범위에 누락된 구간이 있습니다:이 시간대에는 when 블록의 어떤 조건도 만족하지 않아
ty12를 반환하게 되는데, 이는 의도된 동작이 아닐 가능성이 높습니다.다음과 같이 수정하는 것을 권장합니다:
when { nowTime.hour >= 0 && nowTime.hour < 2 -> return timeDataOne.first().ty1 + nowTime.hour >= 2 && nowTime.hour < 4 -> return timeDataOne.first().ty11 nowTime.hour >= 4 && nowTime.hour < 6 -> return timeDataOne.first().ty2 nowTime.hour >= 6 && nowTime.hour < 8 -> return timeDataOne.first().ty3 nowTime.hour >= 8 && nowTime.hour < 10 -> return timeDataOne.first().ty4 nowTime.hour >= 10 && nowTime.hour < 12 -> return timeDataOne.first().ty5 nowTime.hour >= 12 && nowTime.hour < 14 -> return timeDataOne.first().ty6 + nowTime.hour >= 14 && nowTime.hour < 16 -> return timeDataOne.first().ty11 nowTime.hour >= 16 && nowTime.hour < 18 -> return timeDataOne.first().ty7 nowTime.hour >= 18 && nowTime.hour < 20 -> return timeDataOne.first().ty8 nowTime.hour >= 20 && nowTime.hour < 22 -> return timeDataOne.first().ty9 nowTime.hour >= 22 && nowTime.hour < 24 -> return timeDataOne.first().ty10 }참고: 위 수정안에서
ty11을 사용했지만, 실제 비즈니스 로직에 따라 적절한ty값을 매핑해야 합니다. 정확한 시간대-값 매핑 규칙을 확인하여 수정해 주시기 바랍니다.📝 Committable suggestion
🤖 Prompt for AI Agents