mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-30 22:32:54 +02:00
Fixed nil dereferencing and added missing fields validation
This commit is contained in:
@@ -42,7 +42,7 @@ var NewRoutes = F.NewMapOf[string, Route]
|
||||
|
||||
func NewRoute(en *M.RawEntry) (Route, E.NestedError) {
|
||||
rt, err := P.ValidateEntry(en)
|
||||
if err.HasError() {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user