Add guard clauses to improve readability

Refactor fetchRefsForEvent removing nested clauses to improve
readability

Change-Id: Ic926fd6da0964d6ca47495b67467837e55025d6b
1 file changed