fix: handle trailing commas (#1470)

Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
This commit is contained in:
joseph-sentry
2024-06-10 11:32:49 -04:00
committed by GitHub
parent 7b6a727a4a
commit feaf700b2a
4 changed files with 8 additions and 4 deletions

View File

@@ -311,7 +311,9 @@ const buildUploadExec = async (): Promise<{
}
if (files) {
files.split(',').map((f) => f.trim()).forEach((f) => {
uploadExecArgs.push('-f', `${f}`);
if (f.length > 0) { // this handles trailing commas
uploadExecArgs.push('-f', `${f}`);
}
});
}
if (flags) {