Skip to content

Commit

Permalink
removing wrong check
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronvasconcelos committed Mar 7, 2024
1 parent 8c2666d commit dab22f0
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Spix.Domain/Core/Result/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@ public class Result
{
protected Result(bool isSuccess, Error error)
{
if (isSuccess && error != Error.None)
{
throw new InvalidOperationException();
}

if (!isSuccess && error == Error.None)
{
throw new InvalidOperationException();
}


IsSuccess = isSuccess;
Error = error;
}
Expand Down

0 comments on commit dab22f0

Please sign in to comment.