Drop dead code
Drop unnecessary calls to checkResponse
Pass the (required) apiRes.rev directly
Disambiguate conditional