[Android] Fix for lint error
Error fixed:
../../brave/android/java/org/chromium/chrome/browser/settings/BraveSyncScreensPreference.java:723: Warning: Assertion condition has a side effect: tag = normalizeTag(tag) [AssertionSideEffect]
assert isSeedHexValid(seedHex);
This commit is contained in:
@@ -720,7 +720,8 @@ public class BraveSyncScreensPreference extends BravePreferenceFragment
|
||||
// This function used when we have scanned the QR code to connect to the chain
|
||||
private void seedHexReceived(String seedHex) {
|
||||
assert seedHex != null && !seedHex.isEmpty();
|
||||
assert isSeedHexValid(seedHex);
|
||||
boolean seedHexValid = isSeedHexValid(seedHex);
|
||||
assert seedHexValid;
|
||||
|
||||
if (null == getActivity()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user