Skip to content

cleanup: simplify InternalExpression logic#92

Merged
Lyokone merged 2 commits intomainfrom
params_cleanup
Mar 27, 2026
Merged

cleanup: simplify InternalExpression logic#92
Lyokone merged 2 commits intomainfrom
params_cleanup

Conversation

@kevmoo
Copy link
Copy Markdown
Collaborator

@kevmoo kevmoo commented Mar 27, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the InternalExpression class to use a configuration key string instead of a functional getter, which allows static instances like databaseURL and projectId to be declared as constants. The runtimeValue method has been updated to parse the FIREBASE_CONFIG environment variable and extract the relevant value using the provided key. Feedback was provided to simplify the switch expression in runtimeValue to an if-case statement for better conciseness and consistency with the surrounding code patterns.

@kevmoo
Copy link
Copy Markdown
Collaborator Author

kevmoo commented Mar 27, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the InternalExpression class to use a configuration key instead of a closure-based getter, enabling internal Firebase expressions to be defined as constants. The logic for parsing the FIREBASE_CONFIG environment variable is now centralized within the runtimeValue method. Feedback was provided to improve the readability of this method by using guard clauses to reduce nesting.

@Lyokone Lyokone merged commit fa7b815 into main Mar 27, 2026
8 checks passed
@Lyokone Lyokone deleted the params_cleanup branch March 27, 2026 10:36
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.

2 participants