Use type assertion to error out if the type isn't the right one instead of panic as before this change. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: c165a8bfa1419724eb504f3cb7fdf3ca1b97483b Component: engine
Use type assertion to error out if the type isn't the right one instead of panic as before this change. Signed-off-by: Vincent Demeester <vincent@sbr.pm> Upstream-commit: c165a8bfa1419724eb504f3cb7fdf3ca1b97483b Component: engine