diff --git a/packages/agoric-cli/src/commands/inter.js b/packages/agoric-cli/src/commands/inter.js index 7aa8b6ae7c6..9aea7adce4a 100644 --- a/packages/agoric-cli/src/commands/inter.js +++ b/packages/agoric-cli/src/commands/inter.js @@ -218,9 +218,7 @@ export const makeInterCommand = ( try { return rawExec(file, args, ...opts); } catch (err) { - throw InvalidArgumentError( - `${err.message}: is ${file} in your $PATH?`, - ); + throw InvalidArgumentError(`${err.message}: is ${file} in your $PATH?`); } }; @@ -498,9 +496,7 @@ inter auction status const current = await getCurrent(from, { readLatestHead }); const liveIds = current.liveOffers.map(([i, _s]) => i); if (!liveIds.includes(id)) { - throw InvalidArgumentError( - `${id} not in live offer ids: ${liveIds}`, - ); + throw InvalidArgumentError(`${id} not in live offer ids: ${liveIds}`); } const io = { ...networkConfig, execFileSync, delay, stdout }; diff --git a/packages/cosmic-proto/src/codegen/helpers.ts b/packages/cosmic-proto/src/codegen/helpers.ts index 84873ffb102..a5547f7a637 100644 --- a/packages/cosmic-proto/src/codegen/helpers.ts +++ b/packages/cosmic-proto/src/codegen/helpers.ts @@ -241,9 +241,7 @@ export class Decimal { const badCharacter = input.match(/[^0-9.]/); if (badCharacter) { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - throw Error( - `Invalid character at position ${badCharacter.index! + 1}`, - ); + throw Error(`Invalid character at position ${badCharacter.index! + 1}`); } let whole: string; @@ -297,9 +295,7 @@ export class Decimal { if (fractionalDigits < 0) throw Error('Fractional digits must not be negative'); if (fractionalDigits > maxFractionalDigits) { - throw Error( - `Fractional digits must not exceed ${maxFractionalDigits}`, - ); + throw Error(`Fractional digits must not exceed ${maxFractionalDigits}`); } } } diff --git a/packages/cosmic-proto/src/helpers.ts b/packages/cosmic-proto/src/helpers.ts index efcaeefaff6..5e2cb864cd6 100644 --- a/packages/cosmic-proto/src/helpers.ts +++ b/packages/cosmic-proto/src/helpers.ts @@ -97,9 +97,7 @@ const QUERY_REQ_TYPEURL_RE = export const typeUrlToGrpcPath = (typeUrl: Any['typeUrl']) => { const match = typeUrl.match(QUERY_REQ_TYPEURL_RE); if (!(match && match.groups)) { - throw TypeError( - `Invalid typeUrl: ${typeUrl}. Must be a Query Request.`, - ); + throw TypeError(`Invalid typeUrl: ${typeUrl}. Must be a Query Request.`); } const { serviceName, methodName } = match.groups; return `/${serviceName}.Query/${methodName}`;