Fixes Go lint errors and a style fix

"... if a GET request ..."