multiple consecutive calls to `app.getAlarms()` - swap lines 81 and 83, and reuse returned value.