minor fixes in DownloadManager.php
We should use "===" instead of "==" since it's better and faster in this case.pull/3334/head
parent
31eadc6920
commit
7cea912d30
|
@ -202,7 +202,7 @@ class DownloadManager
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
if ($i == count($sources) - 1) {
|
if ($i === count($sources) - 1) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue