Skip to content

Commit

Permalink
fixup! format
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Sep 7, 2024
1 parent e5dae98 commit a6852c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 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
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ export const wrap = ({

const require = (/** @type {string} */ importSpecifier) => {
if (!has(resolvedImports, importSpecifier)) {
throw Error(
`Cannot find module "${importSpecifier}" in "${location}"`,
);
throw Error(`Cannot find module "${importSpecifier}" in "${location}"`);
}
const namespace = compartment.importNow(resolvedImports[importSpecifier]);
// If you read this file carefully, you'll see it's not possible for a cjs module to not have the default anymore.
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 a6852c9

Please sign in to comment.