From 68ccd1d79de7cef275605e238238c1a80bbb074f Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 09 Aug 2023 05:53:01 +0000
Subject: [PATCH] format
---
quartz/trace.ts | 8 ++++----
quartz/sourcemap.ts | 1 -
quartz/bootstrap-cli.mjs | 4 ++--
quartz/processors/parse.ts | 3 ++-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/quartz/bootstrap-cli.mjs b/quartz/bootstrap-cli.mjs
index adcdb9f..cfb01f1 100755
--- a/quartz/bootstrap-cli.mjs
+++ b/quartz/bootstrap-cli.mjs
@@ -86,8 +86,8 @@
},
concurrency: {
number: true,
- describe: "how many threads to use to parse notes"
- }
+ describe: "how many threads to use to parse notes",
+ },
}
function escapePath(fp) {
diff --git a/quartz/processors/parse.ts b/quartz/processors/parse.ts
index 1340020..69df69b 100644
--- a/quartz/processors/parse.ts
+++ b/quartz/processors/parse.ts
@@ -118,7 +118,8 @@
const log = new QuartzLogger(argv.verbose)
const CHUNK_SIZE = 128
- let concurrency = ctx.argv.concurrency ?? (fps.length < CHUNK_SIZE ? 1 : os.availableParallelism())
+ let concurrency =
+ ctx.argv.concurrency ?? (fps.length < CHUNK_SIZE ? 1 : os.availableParallelism())
let res: ProcessedContent[] = []
log.start(`Parsing input files using ${concurrency} threads`)
diff --git a/quartz/sourcemap.ts b/quartz/sourcemap.ts
index 8b05c8b..d3b9cf7 100644
--- a/quartz/sourcemap.ts
+++ b/quartz/sourcemap.ts
@@ -16,4 +16,3 @@
}
},
}
-
diff --git a/quartz/trace.ts b/quartz/trace.ts
index ca3a5a0..c7f3cc3 100644
--- a/quartz/trace.ts
+++ b/quartz/trace.ts
@@ -11,10 +11,10 @@
lines.push("")
lines.push(
"\n" +
- chalk.bgRed.black.bold(" ERROR ") +
- "\n" +
- chalk.red(` ${msg}`) +
- (err.message.length > 0 ? `: ${err.message}` : ""),
+ chalk.bgRed.black.bold(" ERROR ") +
+ "\n" +
+ chalk.red(` ${msg}`) +
+ (err.message.length > 0 ? `: ${err.message}` : ""),
)
if (!stack) {
--
Gitblit v1.10.0