Skip to content

Commit

Permalink
fix: remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Mar 22, 2019
1 parent fa04da7 commit 2d7a081
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"homepage": "https://github.com/open-rpc/schema-utils-js#readme",
"dependencies": {
"@open-rpc/meta-schema": "^1.1.0",
"@open-rpc/meta-schema": "^1.2.0",
"@types/ajv": "^1.0.0",
"ajv": "^6.10.0",
"fs-extra": "^7.0.1",
Expand Down
3 changes: 0 additions & 3 deletions src/generate-method-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ export const generateMethodParamId = (
method: types.MethodObject,
contentDescriptor: types.ContentDescriptorObject,
) => {
// remove this once updated meta-schema with this PR: https://github.com/open-rpc/meta-schema/pull/72
if (method.params === undefined) { throw makeNotFoundError(method, contentDescriptor); }

if (!some(method.params, { name: contentDescriptor.name })) {
throw makeNotFoundError(method, contentDescriptor);
}
Expand Down

0 comments on commit 2d7a081

Please sign in to comment.