Model: Ensure name is not empty
We don't need it because we don't have to open the new-config UI
after scanning a QR code.
This reverts commit db72e95
.
This commit is contained in:
parent
ac29886f7b
commit
be1383aed8
|
@ -28,6 +28,7 @@ struct InterfaceConfiguration: Codable {
|
||||||
init(name: String, privateKey: Data) {
|
init(name: String, privateKey: Data) {
|
||||||
self.name = name
|
self.name = name
|
||||||
self.privateKey = privateKey
|
self.privateKey = privateKey
|
||||||
|
if (name.isEmpty) { fatalError("Empty name") }
|
||||||
if (privateKey.count != 32) { fatalError("Invalid private key") }
|
if (privateKey.count != 32) { fatalError("Invalid private key") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue