a more idiomatic way for golang than using a temp variable. Signed-off-by: Anton Tiurin <noxiouz@yandex.ru> Upstream-commit: fc325274e84a0c16b758e3d6b121c9af1150cce2 Component: engine