Skip to content

Add constants.socketAppPath #539

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

Merged
merged 2 commits into from
May 9, 2025
Merged

Add constants.socketAppPath #539

merged 2 commits into from
May 9, 2025

Conversation

jdalton
Copy link
Collaborator

@jdalton jdalton commented May 9, 2025

Add constants.socketAppPath

@jdalton jdalton merged commit a49a45d into main May 9, 2025
7 checks passed
@jdalton jdalton deleted the jdalton/socket-config branch May 9, 2025 15:59
constants.ENV.LOCALAPPDATA
: // Lazily access constants.ENV.XDG_DATA_HOME
constants.ENV.XDG_DATA_HOME
if (!dataHome) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The LOCALAPPDATA variable is referenced in the template string but isn't defined in this scope. This will likely cause a reference error at runtime. Consider either:

  1. Using the fully qualified path: constants.ENV.LOCALAPPDATA
  2. Adding a local constant declaration before this code block
  3. Using a string literal if this is meant to be the literal environment variable name

This ensures the code will execute properly when this warning needs to be displayed.

Suggested change
if (!dataHome) {
logger.warn(`Missing %LOCALAPPDATA%`)

Spotted by Diamond (based on custom rules)

Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant