Skip to content

Commit

Permalink
fixed: used Maybe.None
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabganji committed Apr 12, 2024
1 parent 38ea979 commit ffedd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeJoyRide.Api/Customers/Services/CustomerRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public Maybe<Customer> Find(string email)
.FirstOrDefault(c => c.Email.IsSome && c.Email.UnwrappedValue == email);

if (foundedCustomer is null)
throw new CustomerNotFoundException(email);
return CodeJoyRide.Fx.Maybe.None;

return Maybe.Some(foundedCustomer);
}
Expand Down

0 comments on commit ffedd44

Please sign in to comment.