Minor tidyup on github api code