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:
Roopesh Chander 2018-10-28 18:12:18 +05:30
parent ac29886f7b
commit be1383aed8
1 changed files with 1 additions and 0 deletions

View File

@ -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") }
}
}