Skip to content

Commit

Permalink
fixup! format
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Sep 4, 2024
1 parent 488c091 commit 1a8f78e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
8 changes: 2 additions & 6 deletions packages/agoric-cli/src/commands/inter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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?`);
}
};

Expand Down Expand Up @@ -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 };
Expand Down
8 changes: 2 additions & 6 deletions packages/cosmic-proto/src/codegen/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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}`);
}
}
}
4 changes: 1 addition & 3 deletions packages/cosmic-proto/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 1a8f78e

Please sign in to comment.