Skip to content

(2/2) DEMOS-2237: Cleanup checks for !currentUser#1407

Merged
tresdonicf merged 3 commits into
mainfrom
DEMOS-2237-cleanup
Jun 9, 2026
Merged

(2/2) DEMOS-2237: Cleanup checks for !currentUser#1407
tresdonicf merged 3 commits into
mainfrom
DEMOS-2237-cleanup

Conversation

@tresdonicf

Copy link
Copy Markdown
Contributor

Now that currentUser is not optional on the UserContext we can clean up all this handling for if(!currentUser) around the codebase 🥳

@github-actions github-actions Bot added the client Relates to the client. label Jun 9, 2026
@demos-git-service-account

demos-git-service-account commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@tresdonicf tresdonicf requested a review from a team June 9, 2026 17:09
Comment on lines -103 to -105
if (!currentUser) {
throw new Error("FileAndHistoryTabs requires an authenticated user.");
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had to have a bunch of these sprinkled about in the codebase since getCurrentUser could return currentUser: undefined - now it's no longer needed

@tresdonicf tresdonicf added this pull request to the merge queue Jun 9, 2026
Merged via the queue into main with commit 24ce1b4 Jun 9, 2026
24 checks passed
@tresdonicf tresdonicf deleted the DEMOS-2237-cleanup branch June 9, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client Relates to the client.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants