fix(validation): error typo "unknown" (#3304)

This commit is contained in:
Max Schmitt 2020-08-05 20:44:32 +02:00 committed by GitHub
parent 9280037d0f
commit 4956041109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -242,6 +242,6 @@ const scheme = createScheme(tChannel);
function validateParams(type: string, method: string, params: any): any {
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
if (!scheme[name])
throw new ValidationError(`Uknown scheme for ${type}.${method}`);
throw new ValidationError(`Unknown scheme for ${type}.${method}`);
return scheme[name](params, '');
}

View File

@ -143,7 +143,7 @@ export class DispatcherConnection {
this._validateParams = (type: string, method: string, params: any): any => {
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
if (!scheme[name])
throw new ValidationError(`Uknown scheme for ${type}.${method}`);
throw new ValidationError(`Unknown scheme for ${type}.${method}`);
return scheme[name](params, '');
};
}