Skip to content

Commit 10a7304

Browse files
APE 22 listing: Simplify found_astropy
Co-authored-by: sneakers-the-rat <[email protected]>
1 parent 2b533a1 commit 10a7304

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

affiliated/index.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,7 @@ <h2 id="new-affil-reviewer">I am a new reviewer<a class="paralink" href="#new-af
414414
if (partners == null) {
415415
continue;
416416
}
417-
var found_astropy = false;
418-
for (var p2=0; p2<partners.length; p2++) {
419-
var cur_partner = partners[p2];
420-
if (cur_partner.startsWith("astropy")) {
421-
found_astropy = true;
422-
break;
423-
}
424-
}
417+
let found_astropy = partners.some(e => e.includes("astropy"));
425418
if (!found_astropy) {
426419
continue;
427420
}

0 commit comments

Comments
 (0)