Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 789940eb authored by Danny Lin's avatar Danny Lin
Browse files

factory: Fix snapshot-update-status variable check

FastbootDevice#getVariable() was updated to stop returning undefined, so
update this to match.
parent 9ed156f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ export async function flashZip(

    // Cancel snapshot update if in progress
    let snapshotStatus = await device.getVariable("snapshot-update-status");
    if (snapshotStatus !== undefined && snapshotStatus !== "none") {
    if (snapshotStatus !== null && snapshotStatus !== "none") {
        await device.runCommand("snapshot-update:cancel");
    }