mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
Don't try to flash when no device is selected
Changelog-entry: Don't try to flash when no device is selected Change-type: patch
This commit is contained in:
parent
cafaa9ff22
commit
164fd8f022
@ -119,6 +119,11 @@ module.exports = function (
|
||||
return _.includes(devices, drive.device)
|
||||
})
|
||||
|
||||
// eslint-disable-next-line no-magic-numbers
|
||||
if (drives.length === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
const hasDangerStatus = constraints.hasListDriveImageCompatibilityStatus(drives, image)
|
||||
if (hasDangerStatus) {
|
||||
if (!(await displayTailoredWarning(drives, image))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user