Skip to content

Commit a273570

Browse files
committed
cleanup
1 parent e020c6d commit a273570

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/flash.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const Error = {
3838
}
3939

4040
function isRecognizedDevice(slotCount, partitions) {
41-
4241
if (slotCount !== 2) {
4342
console.error('[QDL] Unrecognised device (slotCount)')
4443
return false
@@ -91,6 +90,7 @@ export function useQdl() {
9190
function setError(error) {
9291
_setError(error)
9392
}
93+
9494
useEffect(() => {
9595
setProgress(-1)
9696
setMessage()
@@ -186,7 +186,7 @@ export function useQdl() {
186186
.catch((err) => {
187187
console.error('[QDL] Connection error', err)
188188
setStep(Step.READY)
189-
})
189+
})
190190
break
191191
}
192192

@@ -242,15 +242,15 @@ export function useQdl() {
242242
setProgress(0)
243243

244244
async function flashDevice() {
245-
const currentSlot = await qdl.current.getActiveSlot();
245+
const currentSlot = await qdl.current.getActiveSlot()
246246
if (!['a', 'b'].includes(currentSlot)) {
247247
throw `Unknown current slot ${currentSlot}`
248248
}
249249
const otherSlot = currentSlot === 'a' ? 'b' : 'a'
250250

251251
// Erase current xbl partition so if users try to power up device
252252
// with corrupted primary gpt header, it would not update the backup
253-
await qdl.current.erase("xbl"+`_${currentSlot}`)
253+
await qdl.current.erase(`xbl_${currentSlot}`)
254254

255255
for await (const [image, onProgress] of withProgress(manifest.current, setProgress)) {
256256
const fileHandle = await imageWorker.current.getImage(image)

0 commit comments

Comments
 (0)