Change Session loading to return undefined when there is no Session#64
Change Session loading to return undefined when there is no Session#64thecodepixi merged 1 commit intomainfrom
Conversation
05dd577 to
2305706
Compare
… Session to return.
2305706 to
a10ac39
Compare
Why? |
tanema
left a comment
There was a problem hiding this comment.
I can see a lot of changes that are more linting than the specific change for this PR. Ideally these would be separate PRs (or at least only changing the code you touch) But it LGTM anyway 👍
Yeah, this seems to be happening to me a lot lately. I think we/I might have some linting inconsistencies so when I pull things down it gets formatted on my end. Will fix that ASAP. |
My personal thinking here is that a session is almost always assigned to a variable, and if a variable has no value it is therefore |
WHY are these changes introduced?
We were previously returning
nullwhen noSessionis found. We should instead returnundefinedWHAT is this pull request doing?
Updates all
Sessionloading implementation return types toSession | undefinedType of change