(maint) Fix compilation error on Mac with Clang
(maint) Fix compilation error on Mac with Clang

Clang warns about moving in return statements, which prevents copy
elision. Avoid move statements in the return statement.

puppetlabs/pxp-agent,puppetlabs/pxp-agent,puppetlabs/pxp-agent