Skip to content

Commit

Permalink
fixup! format
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Nov 17, 2024
1 parent 2eabb13 commit 028de23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions packages/cli/demo/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
};
Expand Down
4 changes: 1 addition & 3 deletions packages/cli/src/pet-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions packages/daemon/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 1 addition & 3 deletions packages/daemon/src/pet-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 028de23

Please sign in to comment.