Missing spacing.. should be:
if (reportSuccess || code != 0) {