Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Henning committed Oct 7, 2024
1 parent 55cc1a3 commit b72f36d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/factory/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,11 @@ func (u *UserPlaneInformation) Validate() (result bool, err error) {
}
}

return result, error(validationErrors)
if len(validationErrors) > 0 {
return result, error(validationErrors)
} else {
return false, nil
}
}

// UPNode represent the user plane node
Expand Down

0 comments on commit b72f36d

Please sign in to comment.