From 5727d9cf29e046b632e2221a9dd7ec64ad1b2c4f Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Wed, 4 Sep 2024 13:15:11 -0700 Subject: [PATCH] fixup! format --- packages/cli/demo/cat.js | 4 +--- packages/cli/src/pet-name.js | 4 +--- packages/daemon/src/client.js | 4 +--- packages/daemon/src/pet-store.js | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/cli/demo/cat.js b/packages/cli/demo/cat.js index a73b83dda0..9c2928f9e7 100644 --- a/packages/cli/demo/cat.js +++ b/packages/cli/demo/cat.js @@ -824,9 +824,7 @@ const render = value => { return $value; } default: { - throw Error( - 'Unreachable if programmed to account for all pass-styles', - ); + throw Error('Unreachable if programmed to account for all pass-styles'); } } }; diff --git a/packages/cli/src/pet-name.js b/packages/cli/src/pet-name.js index 4039cdb78f..7005734d53 100644 --- a/packages/cli/src/pet-name.js +++ b/packages/cli/src/pet-name.js @@ -13,9 +13,7 @@ export const parsePetNamePath = petNamePath => { const petNames = petNamePath.split('.'); for (const petName of petNames) { if (petName === '') { - throw Error( - `Pet name path ${q(petNamePath)} contains an empty segment.`, - ); + throw Error(`Pet name path ${q(petNamePath)} contains an empty segment.`); } } return petNames; diff --git a/packages/daemon/src/client.js b/packages/daemon/src/client.js index 874e1a15c1..c45c94db80 100644 --- a/packages/daemon/src/client.js +++ b/packages/daemon/src/client.js @@ -18,9 +18,7 @@ export const makeEndoClient = async (name, sockPath, cancelled, bootstrap) => { conn.on('error', (/** @type {any} */ error) => { if (error.code === 'ENOENT') { reject( - Error( - `Cannot connect to Endo. Is Endo running? ${error.message}`, - ), + Error(`Cannot connect to Endo. Is Endo running? ${error.message}`), ); } else { reject(error); diff --git a/packages/daemon/src/pet-store.js b/packages/daemon/src/pet-store.js index c09806fd5f..44eedc4664 100644 --- a/packages/daemon/src/pet-store.js +++ b/packages/daemon/src/pet-store.js @@ -248,9 +248,7 @@ export const makePetStoreMaker = (filePowers, config) => { assertValidName, ) => { if (!isValidNumber(formulaNumber)) { - throw Error( - `Invalid formula number for pet store ${q(formulaNumber)}`, - ); + throw Error(`Invalid formula number for pet store ${q(formulaNumber)}`); } const prefix = formulaNumber.slice(0, 2); const suffix = formulaNumber.slice(2);