packages/bemuse-tools/src/server.js
Function createSongServer
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createSongServer(dir) {
const promise = glob('**/*.{wav,ogg,mp3,m4a,flac}', { cwd: dir })
.map((name) =>
stat(path.join(dir, name)).then((stats) => ({
name: name,