Skip to content

Commit

Permalink
Merge pull request #13 from gauravpatel67/master
Browse files Browse the repository at this point in the history
correct1
  • Loading branch information
gauravpatel67 authored Nov 19, 2024
2 parents 761f9ae + 5d55093 commit c8552be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lambda_functions/calculator_function/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ def lambda_handler(event, context):
first_number = event.get("first_number")
second_number = event.get("second_number")

# Check if both numbers are provided
if first_number is None or second_number is None:
return {
"statusCode": 400,
"body": {"error": "Both numbers are required for this operation."}
}
# # Check if both numbers are provided
# if first_number is None or second_number is None:
# return {
# "statusCode": 400,
# "body": {"error": "Both numbers are required"}
# }

# Map operation_list to their corresponding classes
operations = {
Expand Down

0 comments on commit c8552be

Please sign in to comment.