pref:清洗phantom5099以及xgo的问题代码#444
Conversation
|
@phantom5099 is attempting to deploy a commit to the pionxe's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
| } | ||
| if !isBaseLifecycleState(next) { | ||
| return errors.New("runtime: invalid base lifecycle state") | ||
| } |
There was a problem hiding this comment.
setBaseRunState no longer guards state == nil before dereferencing state.mu. This makes the helper panic-prone if a nil state reaches it (tests previously covered this branch). Even if current call sites pass non-nil, keeping a cheap nil guard preserves defensive behavior and reduces future regression risk.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
No description provided.