Skip to content

Refactor number validation logic and fix typos#1596

Closed
RafsanNeloy wants to merge 2 commits intoaces:masterfrom
RafsanNeloy:bugfix
Closed

Refactor number validation logic and fix typos#1596
RafsanNeloy wants to merge 2 commits intoaces:masterfrom
RafsanNeloy:bugfix

Conversation

@RafsanNeloy
Copy link
Contributor

In number validation logic elsif (number = Integer(value) rescue Float(value) rescue nil) and elsif (number = (Integer(value) rescue Float(value) rescue nil)) both are right but i think the second one is cleaner and clearer to understand perfectly.
Also the maximum value typo fixed in this PR

Signed-off-by: rafsanneloy <rafsanneloy@gmail.com>
… message

Signed-off-by: rafsanneloy <rafsanneloy@gmail.com>
@prioux
Copy link
Member

prioux commented Mar 4, 2026

Please rebase or re-submit as this PR already contains code changes that were merged in your previous pull request, #1595

@prioux prioux closed this Mar 4, 2026
@RafsanNeloy
Copy link
Contributor Author

Sorry my mistake.. Fixing it soon

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