Collapse if-only-in-else to else-if (S6660)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cd61aed0d
commit
cb22ce72c1
1 file changed
+2
-4
@@ -411,10 +411,8 @@ watch(
|
|||||||
if (newPwd.length < PWD_VALID_LENGTH) {
|
if (newPwd.length < PWD_VALID_LENGTH) {
|
||||||
isConfirmDisabled.value = true;
|
isConfirmDisabled.value = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (isResetPwdSectionShow.value && newPwd.length < PWD_VALID_LENGTH) {
|
||||||
if (isResetPwdSectionShow.value && newPwd.length < PWD_VALID_LENGTH) {
|
isConfirmDisabled.value = true;
|
||||||
isConfirmDisabled.value = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user