From 4f9a2aa926af5777e0801c4c33b642596b388436 Mon Sep 17 00:00:00 2001 From: Burkhard Heisen Date: Thu, 18 Apr 2024 13:08:04 +0200 Subject: [PATCH] Removed file ending magic for jsdoc path --- vrpc/VrpcAdapter.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vrpc/VrpcAdapter.js b/vrpc/VrpcAdapter.js index c61fb99..ff3d0bf 100644 --- a/vrpc/VrpcAdapter.js +++ b/vrpc/VrpcAdapter.js @@ -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)