Skip to content

Fix handling of trailing newline in credential file - #75

Merged
juliohm merged 1 commit into
JuliaClimate:masterfrom
alesok:final-n-in-.cdsapirc
Sep 4, 2026
Merged

Fix handling of trailing newline in credential file#75
juliohm merged 1 commit into
JuliaClimate:masterfrom
alesok:final-n-in-.cdsapirc

Conversation

@alesok

@alesok alesok commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

This PR fixes a situation where the credential file contains a trailing \n (newline) after the second line. This results in an empty line being included in the input, which should not be considered when processing the credential file. Having a trailing newline before EOF is common practice and should be handled correctly.

@juliohm juliohm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@juliohm
juliohm merged commit 7b2dcdb into JuliaClimate:master Sep 4, 2026
0 of 4 checks passed
@alesok
alesok deleted the final-n-in-.cdsapirc branch September 4, 2026 14:42
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