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
.
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
a680fdf2bd
commit
3d4409fc93
|
@ -28,6 +28,7 @@ struct InterfaceConfiguration: Codable {
|
|||
init(name: String, privateKey: Data) {
|
||||
self.name = name
|
||||
self.privateKey = privateKey
|
||||
if (name.isEmpty) { fatalError("Empty name") }
|
||||
if (privateKey.count != 32) { fatalError("Invalid private key") }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue