summaryrefslogtreecommitdiff
path: root/std/examples/gist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/examples/gist.ts')
-rwxr-xr-xstd/examples/gist.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/examples/gist.ts b/std/examples/gist.ts
index 8fc97e0f8..15f00ff5d 100755
--- a/std/examples/gist.ts
+++ b/std/examples/gist.ts
@@ -26,8 +26,8 @@ if (parsedArgs._.length === 0) {
const files: Record<string, { content: string }> = {};
for (const filename of parsedArgs._) {
- const base = pathBase(filename);
- const content = await Deno.readFile(filename);
+ const base = pathBase(filename as string);
+ const content = await Deno.readFile(filename as string);
const contentStr = new TextDecoder().decode(content);
files[base] = { content: contentStr };
}