Commit 4ea4610
refactor: simplify stateless check back to sessionIdGenerator === undefined
Now that the constructor always sets sessionIdGenerator when existingSessionId
is provided, the extra `&& sessionId === undefined` guard in validateSession
is redundant. Revert to the clean single-condition check as suggested by reviewer.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e3ec989 commit 4ea4610
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
868 | 869 | | |
869 | 870 | | |
870 | 871 | | |
| |||
0 commit comments