Skip to content

parseNumeric: require non-empty values#235

Merged
vvoland merged 1 commit into
moby:mainfrom
thaJeztah:rm_empty_check
Jul 21, 2026
Merged

parseNumeric: require non-empty values#235
vvoland merged 1 commit into
moby:mainfrom
thaJeztah:rm_empty_check

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

follow-up to 841c83e (#231) and 743614e (#232).

Now that optional user-values are handled through parseGroupArg and parseUserArg (both of which gracefully handle empty values), we can make parseNumeric strict, and produce an error when trying to parse an empty string.

follow-up to 841c83e and
743614e.

Now that optional user-values are handled through parseGroupArg and
parseUserArg (both of which gracefully handle empty values), we can
make parseNumeric strict, and produce an error when trying to parse
an empty string.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztah requested a review from vvoland July 21, 2026 08:36
@vvoland
vvoland merged commit 4a8455d into moby:main Jul 21, 2026
20 checks passed
@thaJeztah
thaJeztah deleted the rm_empty_check branch July 21, 2026 15:28

@kolyshkin kolyshkin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[post-merge] LGTM

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.

3 participants