summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xformat.ts13
-rw-r--r--net/bufio.ts1
2 files changed, 13 insertions, 1 deletions
diff --git a/format.ts b/format.ts
new file mode 100755
index 000000000..251cba1ed
--- /dev/null
+++ b/format.ts
@@ -0,0 +1,13 @@
+#!/usr/bin/env deno --allow-run
+
+import { exit, run } from "deno";
+
+async function main() {
+ const prettier = run({
+ args: ["bash", "-c", "prettier --write *.ts **/*.ts"]
+ });
+ const s = await prettier.status();
+ exit(s.code);
+}
+
+main();
diff --git a/net/bufio.ts b/net/bufio.ts
index b412cbce8..0dd2b94b4 100644
--- a/net/bufio.ts
+++ b/net/bufio.ts
@@ -185,7 +185,6 @@ export class BufReader implements Reader {
return [nread, nread < p.length ? "EOF" : null];
}
-
/** Returns the next byte [0, 255] or -1 if EOF. */
async readByte(): Promise<number> {
while (this.r === this.w) {