main/MediaDetector.js
Function scan
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
scan() {
return new Promise((resolve, reject) => {
let scriptPath;
if (process.env.NODE_ENV === 'development') {
scriptPath = path.resolve(__dirname, '../bin/detect-media.ps1');