Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Aug 30, 2023
1 parent 05e127e commit 4fa7a67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ephemeral_sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function get_file(public_key: string, path: string, env: Env): Promise<Res
if (!v.value && path.endsWith('/')) {
const index_options = get_index_options(path)
while (!v.value) {
const next = index_options.next();
const next = index_options.next()
if (next.done) {
break
} else {
Expand All @@ -108,7 +108,6 @@ async function get_file(public_key: string, path: string, env: Env): Promise<Res
})
}
}

}
let status = 200

Expand Down Expand Up @@ -193,6 +192,6 @@ export async function get_only_file(public_key: string, env: Env): Promise<strin
}
}

function filter_files(files: { name: string }[]): string[] {
function filter_files(files: {name: string}[]): string[] {
return files.map(k => k.name.substring(PUBLIC_KEY_LENGTH + 6)).filter(f => f != INFO_FILE_NAME)
}

0 comments on commit 4fa7a67

Please sign in to comment.