Skip to content

Commit 3e49762

Browse files
authored
removed 'some' completely
1 parent e73d512 commit 3e49762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/engine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class Engine {
3838
for (const ev of out) {
3939
if (ev.speakers) {
4040
for (const spId of ev.speakers) {
41-
if (!full.people.some((p) => p.id === spId)) {
41+
if (!full.people((p) => p.id === spId)) {
4242
throw new Error(`Speaker not exists: ${spId} (event ${ev.id})`);
4343
}
4444
}
@@ -108,7 +108,7 @@ export class Engine {
108108
);
109109
if (opts.loader === "person") {
110110
// load image
111-
const img = images.some((i) => i.id === fn);
111+
const img = images((i) => i.id === fn);
112112
if (img) {
113113
item.imageUrl =
114114
`https://data.web3privacy.info/img/people/${img.id}.${img.ext}`;

0 commit comments

Comments
 (0)