mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 15:10:25 +00:00
!361 Boolean casts fix part two
Merge pull request !361 from Maksim Khramov/casts-fix-part-two
This commit is contained in:
commit
a9b421c0c4
@ -144,7 +144,7 @@ class ScreenManager {
|
||||
}
|
||||
let cb;
|
||||
let i = cbs.length;
|
||||
while (i-- != 0) {
|
||||
while (i-- > 0) {
|
||||
cb = cbs[i];
|
||||
if (cb === fn || cb.fn === fn) {
|
||||
cbs.splice(i, 1);
|
||||
|
@ -30,7 +30,7 @@ export function hiSysEventDataQueryTimedOut(interfaceName: string): number {
|
||||
params: params
|
||||
};
|
||||
hiSysEvent.write(info, (err: Error): void => {
|
||||
if(err) {
|
||||
if(err != null) {
|
||||
Log.error(TAG, 'fail to return hiSysEvent');
|
||||
}
|
||||
});
|
||||
|
@ -462,7 +462,7 @@ export struct AlbumSetPage {
|
||||
isBigCard: true,
|
||||
})
|
||||
}.columnStart(0).columnEnd(1)
|
||||
} else if ((item != undefined && item != null) && (item.get() != undefined && item.get() != null)) {
|
||||
} else if (item != null && item.get() != null) {
|
||||
GridItem() {
|
||||
AlbumGridItemNewStyle({
|
||||
item: item.get(),
|
||||
|
@ -97,4 +97,4 @@ export struct PhotoSwiper {
|
||||
})
|
||||
.disableSwipe(this.canSwipe)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user