Gh374 push login merged with master

getResult is called 2 times in the same method; put it in a var