mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 16:13:54 +00:00
parent
9f33cd2896
commit
17663c1232
41 changed files with 734 additions and 649 deletions
|
@ -9,7 +9,7 @@ function pathBase(p: string): string {
|
|||
return parts[parts.length - 1];
|
||||
}
|
||||
|
||||
async function main() {
|
||||
async function main(): Promise<void> {
|
||||
const token = env()["GIST_TOKEN"];
|
||||
if (!token) {
|
||||
console.error("GIST_TOKEN environmental variable not set.");
|
||||
|
@ -46,7 +46,7 @@ async function main() {
|
|||
headers: [
|
||||
["Content-Type", "application/json"],
|
||||
["User-Agent", "Deno-Gist"],
|
||||
["Authorization", "token " + token]
|
||||
["Authorization", `token ${token}`]
|
||||
],
|
||||
body
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue