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

Unverified Commit 646e5905 authored by Simon Chan's avatar Simon Chan
Browse files

fix: fix eslint errors

parent 14dbc45e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -12,10 +12,10 @@ jobs:
      id-token: write
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        uses: actions/checkout@v4

      - name: Setup node
        uses: actions/setup-node@v3
        uses: actions/setup-node@v4
        with:
          node-version: 18

+2 −2
Original line number Diff line number Diff line
@@ -20,12 +20,12 @@ jobs:

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}

+2 −2
Original line number Diff line number Diff line
@@ -20,10 +20,10 @@ jobs:

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        uses: actions/checkout@v4

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}

+5 −2
Original line number Diff line number Diff line
@@ -125,7 +125,10 @@ export class WebCodecsVideoDecoder implements ScrcpyVideoDecoder {
                if (controller) {
                    try {
                        controller.error(e);
                    } catch {}
                    } catch {
                        // ignore
                        // `controller` may already in error state
                    }
                } else {
                    error = e;
                }
@@ -142,7 +145,7 @@ export class WebCodecsVideoDecoder implements ScrcpyVideoDecoder {
                    controller = _controller;
                }
            },
            write: (packet, _controller) => {
            write: (packet) => {
                if (this.#codec === ScrcpyVideoCodecId.AV1) {
                    if (packet.type === "configuration") {
                        return;