Skip to content

Commit

Permalink
Replace find by some
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 authored Aug 21, 2024
1 parent 6bc58c8 commit 6b15052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/controller/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5734,7 +5734,7 @@ async function listUpdatableOsPackages(): Promise<void> {
}

const knownPackages: string[] = typeof packagesState?.val === 'string' ? JSON.parse(packagesState.val) : [];
const hasNewPackage = !!packages.find(pack => !knownPackages.includes(pack));
const hasNewPackage = packages.some(pack => !knownPackages.includes(pack));

if (!hasNewPackage) {
return;
Expand Down

0 comments on commit 6b15052

Please sign in to comment.