Files
docker-cli/opts
Sebastiaan van Stijn 76196dbb01 opts: parseKeyValueFile: cleanup and remove redundant trimming
- the function already trimmed leading whitespace from each line before
  parsing. keys with trailing whitespace would be invalidated, and values
  have whitespace preserved, so there's no need to trim whitespace for the
  key.
- if a line is validated (key is valid), we don't need to reconstruct the
  key=value by concatenating, and we can add the line as-is.
- check if the key is empty before checking if it contains whitespace
- touch-up comments
- rename some variables for readability
- slight cleanup to use early returns / early continues to reduce nesting

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-04 11:56:15 +02:00
..
2022-09-30 11:59:11 +02:00
2023-05-05 18:23:03 +02:00
2022-03-26 20:21:00 +01:00
2024-05-26 13:14:01 +01:00
2024-07-04 01:35:12 +02:00