linting
This commit is contained in:
@@ -43,6 +43,9 @@ func (o *Ownership) Validate() error {
|
||||
if o.To != nil && o.To.Before(o.From) {
|
||||
veAdd(&verr, "effectiveTo", "before_from", "must be >= effectiveFrom")
|
||||
}
|
||||
if verr == nil {
|
||||
return nil
|
||||
}
|
||||
return verr
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user