[RequireNative] Remove trailing LN

This commit is contained in:
Ducko 2022-04-22 17:55:21 +01:00
parent 6ae3c0f284
commit 06b35cbc1d
1 changed files with 1 additions and 1 deletions

View File

@ -3,4 +3,4 @@
// For Module Updater: get root path for all modules in globalPaths
const g = require('module').globalPaths;
module.exports = (n, e = '') => require(require('path').join(g.reverse().find(x => x.includes(n)) ?? g[0], n, e));
module.exports = (n, e = '') => require(require('path').join(g.reverse().find(x => x.includes(n)) ?? g[0], n, e));