1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-01 23:41:24 +00:00

Allow lookup of object without returning it

This commit is contained in:
Darren Shepherd 2018-01-16 12:50:03 -07:00
parent 905797b50f
commit 76b1e1b679

View File

@ -27,6 +27,10 @@ func ByID(context *types.APIContext, version *types.APIVersion, typeName string,
return err
}
if into == nil {
return nil
}
return convert.ToObj(item, into)
}