mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-29 17:19:57 -07:00
clients: snapshot
This commit is contained in:
@@ -17,7 +17,7 @@ import { collect, markUsed, logUnused } from "./unused.js";
|
||||
* @param {Signal<string | null>} args.qrcode
|
||||
*/
|
||||
export function initOptions({ colors, signals, brk, qrcode }) {
|
||||
collect(brk.tree);
|
||||
collect(brk.metrics);
|
||||
|
||||
const LS_SELECTED_KEY = `selected_path`;
|
||||
|
||||
@@ -56,9 +56,7 @@ export function initOptions({ colors, signals, brk, qrcode }) {
|
||||
);
|
||||
}
|
||||
if (!blueprint.unit) {
|
||||
throw new Error(
|
||||
`Blueprint missing unit: ${blueprint.title}`,
|
||||
);
|
||||
throw new Error(`Blueprint missing unit: ${blueprint.title}`);
|
||||
}
|
||||
markUsed(blueprint.metric);
|
||||
const unit = blueprint.unit;
|
||||
|
||||
Reference in New Issue
Block a user