chore(Type): consistent receiver naming
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user