refactor: only try to apply excluded stream expressions when greater than 0

This commit is contained in:
Viren070
2025-06-22 21:41:15 +01:00
parent ee492e2b21
commit 9dfae2c853
+4 -1
View File
@@ -2325,7 +2325,10 @@ ${errorStreams.length > 0 ? ` ❌ Errors : ${errorStreams.map((s) => `
details: {},
},
};
if (this.userData.excludedStreamExpressions) {
if (
this.userData.excludedStreamExpressions &&
this.userData.excludedStreamExpressions.length > 0
) {
const selector = new StreamSelector();
const streamsToRemove = new Set<string>(); // Track actual stream objects to be removed