summaryrefslogtreecommitdiff
path: root/examples/gist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gist.ts')
-rwxr-xr-xexamples/gist.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gist.ts b/examples/gist.ts
index 7c52662b4..890d85099 100755
--- a/examples/gist.ts
+++ b/examples/gist.ts
@@ -53,11 +53,11 @@ async function main(): Promise<void> {
});
if (res.ok) {
- let resObj = await res.json();
+ const resObj = await res.json();
console.log("Success");
console.log(resObj["html_url"]);
} else {
- let err = await res.text();
+ const err = await res.text();
console.error("Failure to POST", err);
}
}