fixing wrong compiler error for go1.0 (missing return statement)