From e7e66c45bfbc11830c489afa8a5ff6ab3c69c13c Mon Sep 17 00:00:00 2001 From: Takuo Watanabe Date: Sat, 22 Jun 2024 00:42:28 +0900 Subject: [PATCH] Fix #227, Switch stubs error In the class Activator method activate, the conditional expression was omitted so that the variable versions is always a list with elements of the form "key - value". --- src/activator.mts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/activator.mts b/src/activator.mts index d4d21d5..862d825 100644 --- a/src/activator.mts +++ b/src/activator.mts @@ -1122,9 +1122,7 @@ export default class Activator { // Map each value to "key - value" and push to resultArray versions.push( ...values.map(value => - Object.keys(availableStubVersions).length > 1 - ? `${stubPortToDisplayString(key)} - ${value}` - : value + `${stubPortToDisplayString(key)} - ${value}` ) ); });