Skip to content

Commit

Permalink
Removed file ending magic for jsdoc path
Browse files Browse the repository at this point in the history
  • Loading branch information
bheisen committed Apr 18, 2024
1 parent 45cc1ed commit 4f9a2aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vrpc/VrpcAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ class VrpcAdapter {
this._registerClass(Klass, absJsdocPath, options)
} else {
const { jsdocPath } = options
const sJsdocPath =
jsdocPath && jsdocPath.endsWith('.js') ? jsdocPath : `${jsdocPath}.js`
if (jsdocPath) {
const absJsdocPath = path.resolve(caller(), '../', sJsdocPath)
const absJsdocPath = path.resolve(caller(), '../', jsdocPath)
this._registerClass(code, absJsdocPath, { ...options, jsdoc: true })
} else {
this._registerClass(code, null, options)
Expand Down

0 comments on commit 4f9a2aa

Please sign in to comment.