From 0c4d3239466770e653d9033e2f8c6d9e3e06cde1 Mon Sep 17 00:00:00 2001 From: xtrullor73 Date: Sat, 25 May 2024 00:14:51 -0700 Subject: [PATCH] fix: correct instanceof check for filePaths array validation --- src/services/fileService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/fileService.js b/src/services/fileService.js index 99a7869..f66bf22 100644 --- a/src/services/fileService.js +++ b/src/services/fileService.js @@ -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