Skip to content

Commit 4f9a2aa

Browse files
committed
Removed file ending magic for jsdoc path
1 parent 45cc1ed commit 4f9a2aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: vrpc/VrpcAdapter.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,8 @@ class VrpcAdapter {
111111
this._registerClass(Klass, absJsdocPath, options)
112112
} else {
113113
const { jsdocPath } = options
114-
const sJsdocPath =
115-
jsdocPath && jsdocPath.endsWith('.js') ? jsdocPath : `${jsdocPath}.js`
116114
if (jsdocPath) {
117-
const absJsdocPath = path.resolve(caller(), '../', sJsdocPath)
115+
const absJsdocPath = path.resolve(caller(), '../', jsdocPath)
118116
this._registerClass(code, absJsdocPath, { ...options, jsdoc: true })
119117
} else {
120118
this._registerClass(code, null, options)

0 commit comments

Comments
 (0)