-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
claude-fixRequest Claude to analyze and fix this issueRequest Claude to analyze and fix this issue
Description
The method in lacks proper error handling for division by zero.
Steps to reproduce
- Create a Calculator instance
- Call calculator.divide(10, 0)
Expected behavior
The function should handle division by zero by throwing a clear error message or returning an appropriate value.
Current behavior
The function returns Infinity without any error handling.
Fix suggestion
Please add appropriate error checking to prevent division by zero operations.
Metadata
Metadata
Assignees
Labels
claude-fixRequest Claude to analyze and fix this issueRequest Claude to analyze and fix this issue