chore(Type): consistent receiver naming

This commit is contained in:
2025-01-05 13:18:48 +01:00
parent 4ac0a09b85
commit cb7ea4cf3f

View File

@@ -288,12 +288,12 @@ func (opt *Optional[T]) UnmarshalJSON(data []byte) error {
return nil return nil
} }
func (o Optional[T]) Value() (driver.Value, error) { func (opt Optional[T]) Value() (driver.Value, error) {
if !o.present { if !opt.present {
return nil, nil return nil, nil
} }
switch v := any(o.Value).(type) { switch v := any(opt.Value).(type) {
case driver.Valuer: case driver.Valuer:
return v.Value() return v.Value()