Skip to content

Commit

Permalink
#7 fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhongphuc committed Oct 7, 2022
1 parent 2323234 commit cb3f89c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/auth/core/value_objects.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ abstract class ValueObject<T> {
return value.fold((l) => throw UnexpectedException(l), id);
}

ValueFailure<dynamic>? get failure {
return value.fold(
(l) => l,
(r) => null,
);
}
// ValueFailure<dynamic>? get failure {
// return value.fold(
// (l) => l,
// (r) => null,
// );
// }

bool isValid() => value.isRight();

Expand Down

0 comments on commit cb3f89c

Please sign in to comment.