Skip to content

Commit

Permalink
Fix #227, Switch stubs error
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
wtakuo committed Jun 21, 2024
1 parent 8562d88 commit e7e66c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/activator.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
)
);
});
Expand Down

0 comments on commit e7e66c4

Please sign in to comment.