mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Avoid unnecessary cast to any
This commit is contained in:
parent
db9259616c
commit
7a8f248fcb
@ -109,7 +109,7 @@ export async function start(args: ReadonlyArray<string>): Promise<void> {
|
||||
}
|
||||
|
||||
// context.request.body is set by the bodyParser() plugin
|
||||
const requestBody = (context.request as any).body;
|
||||
const requestBody = context.request.body;
|
||||
const { address, ticker } = RequestParser.parseCreditBody(requestBody);
|
||||
|
||||
if (!codecImplementation().isValidAddress(address)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user