mirror of
https://github.com/xtrll/MusicMetaFinder.git
synced 2026-04-27 19:25:56 +02:00
fix: correct instanceof check for filePaths array validation
This commit is contained in:
@@ -8,7 +8,7 @@ import validateAudioFile from '../utils/validateAudioFiles.js';
|
||||
*/
|
||||
export default async function validateAudioFiles(filePaths) {
|
||||
// Validate input type
|
||||
if (!filePaths instanceof Array) {
|
||||
if (!(filePaths instanceof Array)) {
|
||||
throw new TypeError('Input must be an array of file paths (strings).');
|
||||
}
|
||||
// Create a Promise for each file to validate it as an audio file
|
||||
|
||||
Reference in New Issue
Block a user