Skip to content

Commit ddec69f

Browse files
Further check on Monad
Signed-off-by: Yogesh Deshpande <[email protected]>
1 parent eb7113d commit ddec69f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

monad.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ func (o monad) valid() error {
7474
if !o.typ.IsSet() {
7575
return errors.New("type not set")
7676
}
77+
if o.typ.String() == "" {
78+
return errors.New("invalid type")
79+
}
7780
return nil
7881
}
7982

0 commit comments

Comments
 (0)