Skip to content
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

Small improvements to the EnvironmentConfigLoader #1899

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

sschuberth
Copy link
Contributor

Please have a look at the individual commit messages for the details.

The previous code was effectively doing the same as calling `appendln()`
[1], which is deprecated. As no system-specific line-separator is needed
here, use the recommended `appendLine()` [2] instead, which aligns with
what the similar `handleInvalidVariables()` is already using.

[1]: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/appendln.html
[2]: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/append-line.html

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Reduce indentation for a better overview by returning early on no
failures.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Change the `failure` parameter of `handleInvalidDefinitions()` to really
only contain failures. These are cleaner semantics that better match
`handleInvalidVariables()`. In order to do so, filter results earlier.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Align with `handleInvalidDefinitions()`.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
Copy link

Issues referenced in commit messages and issues linked to this PR are in sync.

@sschuberth sschuberth enabled auto-merge January 29, 2025 10:29
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