Skip to content

Refactoring number validation logic and corrected maximum value error…#1597

Merged
natacha-beck merged 1 commit intoaces:masterfrom
RafsanNeloy:bugfix2
Mar 5, 2026
Merged

Refactoring number validation logic and corrected maximum value error…#1597
natacha-beck merged 1 commit intoaces:masterfrom
RafsanNeloy:bugfix2

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

… message

Signed-off-by: rafsanneloy <rafsanneloy@gmail.com>
@natacha-beck natacha-beck merged commit ecf82ea into aces:master Mar 5, 2026
1 check passed
@natacha-beck
Copy link
Contributor

All good, thanks. @RafsanNeloy if you have more complex PR can you create to merge into dev branch please.

RafsanNeloy added a commit to RafsanNeloy/cbrain that referenced this pull request Mar 5, 2026
… message (aces#1597)

Signed-off-by: rafsanneloy <rafsanneloy@gmail.com>
@RafsanNeloy RafsanNeloy deleted the bugfix2 branch March 6, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants