codecheck

Signed-off-by: zhangzuhui <zhangzuhui1@h-partners.com>
This commit is contained in:
zhangzuhui 2024-10-23 14:21:18 +08:00
parent 67a0c74010
commit 705ba01699
2 changed files with 2 additions and 2 deletions

View File

@ -555,7 +555,7 @@ class CollapsibleMenuSection extends ViewPU {
hilog.error(0x3900, 'Ace', `Faild to decideFontScale,cause, code: ${q5}, message: ${r5}`);
}
this.menuItems.forEach((n5, o5) => {
if (n5.isEnabled && this.firstFocusableIndex == -1 &&
if (n5.isEnabled && this.firstFocusableIndex === -1 &&
o5 > CollapsibleMenuSection.maxCountOfVisibleItems - 2) {
this.firstFocusableIndex = this.index * 1000 + o5 + 1;
}

View File

@ -275,7 +275,7 @@ struct CollapsibleMenuSection {
hilog.error(0x3900, 'Ace', `Faild to decideFontScale,cause, code: ${code}, message: ${message}`);
}
this.menuItems.forEach((item, index) => {
if (item.isEnabled && this.firstFocusableIndex == -1 &&
if (item.isEnabled && this.firstFocusableIndex === -1 &&
index > CollapsibleMenuSection.maxCountOfVisibleItems - 2) {
this.firstFocusableIndex = this.index * 1000 + index + 1
}