KeyEncoding: Clean up and reorganize to match style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
@@ -91,7 +91,7 @@ public class Interface extends BaseObservable implements Observable {
|
||||
|
||||
public void setPrivateKey(String privateKey) {
|
||||
// Avoid exceptions from Keypair while the user is typing.
|
||||
if (privateKey.length() != KeyEncoding.WG_KEY_LEN_BASE64)
|
||||
if (privateKey.length() != KeyEncoding.KEY_LENGTH_BASE64)
|
||||
return;
|
||||
keypair = new Keypair(privateKey);
|
||||
notifyPropertyChanged(BR.privateKey);
|
||||
|
||||
Reference in New Issue
Block a user