Skip to content

Commit d7030e2

Browse files
committed
progress: fix linter issues
1 parent 277b558 commit d7030e2

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

src/assets/cloud.svg

-1
This file was deleted.

src/components/Flash.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { Step, Error, useFastboot } from '@/utils/fastboot'
66

77
import bolt from '@/assets/bolt.svg'
88
import cable from '@/assets/cable.svg'
9-
import cloud from '@/assets/cloud.svg'
109
import cloudDownload from '@/assets/cloud_download.svg'
1110
import cloudError from '@/assets/cloud_error.svg'
1211
import deviceExclamation from '@/assets/device_exclamation_c3.svg'

src/layouts/Head.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import iconUrl from '../../public/icon.svg'
32

43
export default function HeadDefault() {

src/utils/fastboot.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function useFastboot() {
172172
// wait for user interaction (we can't use WebUSB without user event)
173173
const handleContinue = useCallback(async () => {
174174
const shouldContinue = await initialize()
175-
if (!shouldContinue) return
175+
if (!shouldContinue || error !== Error.NONE) return
176176

177177
setStep(Step.CONNECTING)
178178
}, [initialize])
@@ -347,7 +347,6 @@ export function useFastboot() {
347347
if (error !== Error.NONE) {
348348
console.debug('[fastboot] error', error)
349349
setProgress(-1)
350-
setOnContinue(null)
351350

352351
setOnRetry(() => () => {
353352
console.debug('[fastboot] on retry')

0 commit comments

Comments
 (0)