Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion node_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
const defaults = require(__dirname + "/../../js/defaults.js");
let configFilename = path.resolve(__dirname + "/../../config/config.js");
if (typeof(global.configuration_file) !== "undefined") {
configFilename = global.configuration_file;
configFilename = path.resolve(__dirname + "/../../"+global.configuration_file);
}

this.thisConfig = {};
Expand Down Expand Up @@ -226,7 +226,7 @@
// now check for installed modules
fs.readdir(path.resolve(__dirname + "/.."), function(err, files) {
const installedModules = files.filter(f => ['node_modules', 'default', 'README.md'].indexOf(f) === -1);
installedModules.forEach((dir, i, a) => {

Check warning on line 229 in node_helper.js

View workflow job for this annotation

GitHub Actions / code-quality

'a' is defined but never used
self.addModule(dir, (i === installedModules.length - 1));
});
});
Expand Down Expand Up @@ -272,8 +272,8 @@
// check for available updates
let stat;
try {
stat = fs.statSync(path.join(modulePath, '.git'));

Check warning on line 275 in node_helper.js

View workflow job for this annotation

GitHub Actions / code-quality

'stat' is assigned a value but never used
} catch (err) {

Check warning on line 276 in node_helper.js

View workflow job for this annotation

GitHub Actions / code-quality

'err' is defined but never used
// Error when directory .git doesn't exist
// This module is not managed with git, skip
return;
Expand Down
Loading