handle stock split
This commit is contained in:
@@ -24,6 +24,7 @@ func (d Kind) String() string {
|
||||
}
|
||||
|
||||
// Is returns true when k equals o
|
||||
func (k Kind) Is(o Kind) bool {
|
||||
return k == o
|
||||
func (k Kind) Is(o any) bool {
|
||||
other, ok := o.(Kind)
|
||||
return ok && k == other
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user