Skip to content

Commit 8aa3351

Browse files
committed
remove win10 and skip 26h1 in doom scroll
1 parent b2d45f2 commit 8aa3351

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

doom-scroll.php

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,18 @@
2929

3030
// Set Latest Version
3131
foreach ($eoldata as $eolitem) {
32-
// Windows 10
33-
if (!$eolitem['lts']
34-
&& !str_contains($eolitem['cycle'], '-e')
35-
&& str_contains($eolitem['cycle'], '10')
36-
&& $found10 === false) {
37-
$latestver = $latestver . $eolitem['latest'] . ' ';
38-
$found10 = true;
39-
}
40-
4132
// Windows 11
42-
if (!$eolitem['lts']
33+
if (!(bool) $eolitem['lts']
4334
&& !str_contains($eolitem['cycle'], '-e')
44-
&& str_contains($eolitem['cycle'], '11')
45-
&& $found11 == false) {
35+
&& str_contains($eolitem['cycle'], '11')
36+
&& $found11 == false
37+
&& !str_contains($eolitem['latest'], '10.0.28000')) {
4638
$latestver = $latestver . $eolitem['latest'] . ' ';
4739
$found11 = true;
4840
}
4941

5042
// Break out of loop
51-
if ($found10 == true && $found11 == true) {
43+
if ($found11 == true) {
5244
break;
5345
}
5446
}

0 commit comments

Comments
 (0)