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

Unverified Commit ba05b958 authored by Danny Lin's avatar Danny Lin
Browse files

Fix code formatting

parent 7843070b
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -50,7 +50,13 @@ function waitForFrame() {
    });
}

export async function runWithTimedProgress(onProgress, action, item, duration, workPromise) {
export async function runWithTimedProgress(
    onProgress,
    action,
    item,
    duration,
    workPromise
) {
    let startTime = new Date().getTime();
    let stop = false;

+1 −7
Original line number Diff line number Diff line
@@ -13,13 +13,7 @@ const BOOT_CRITICAL_IMAGES = [
];

// Less critical images to flash after boot-critical ones
const SYSTEM_IMAGES = [
    "odm",
    "product",
    "system",
    "system_ext",
    "vendor",
];
const SYSTEM_IMAGES = ["odm", "product", "system", "system_ext", "vendor"];

/** User-friendly action strings */
export const USER_ACTION_MAP = {
+3 −8
Original line number Diff line number Diff line
@@ -537,12 +537,7 @@ export class FastbootDevice {
     * @param {ReconnectCallback} onReconnect - Callback to request device reconnection.
     * @param {FactoryFlashCallback} onProgress - Progress callback for image flashing.
     */
    async flashFactoryZip(
        blob,
        wipe,
        onReconnect,
        onProgress = () => {}
    ) {
    async flashFactoryZip(blob, wipe, onReconnect, onProgress = () => {}) {
        return await flashFactoryZip(this, blob, wipe, onReconnect, onProgress);
    }
}