Format
This commit is contained in:
parent
f7913a0aca
commit
5aaf36e631
@ -48,7 +48,9 @@ function parseVersionRange(version) {
|
|||||||
async function resolveVersion({ range, isCanary }) {
|
async function resolveVersion({ range, isCanary }) {
|
||||||
if (isCanary) {
|
if (isCanary) {
|
||||||
if (range === "latest") {
|
if (range === "latest") {
|
||||||
const res = await fetchWithRetries("https://dl.deno.land/canary-latest.txt");
|
const res = await fetchWithRetries(
|
||||||
|
"https://dl.deno.land/canary-latest.txt",
|
||||||
|
);
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"Failed to fetch canary version info from dl.deno.land. Please try again later.",
|
"Failed to fetch canary version info from dl.deno.land. Please try again later.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user