Conversation
There was a problem hiding this comment.
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.
|
/gemini review |
There was a problem hiding this comment.
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.
No description provided.