nit: I'd prefer to describe the intent here rather than how we're doing it, something like 'add a check to prevent the update from being installed on a device different from TARGET_DEVICE'