(supportedVersions, conditional)
| 259 | // If all supported versions show up in the arguments, it's not necessary! Additionally, builds in support |
| 260 | // for when feature-based versioning is used, which looks like "issue" versions for upcoming GHAE releases |
| 261 | function canConditionalBeRemoved(supportedVersions, conditional) { |
| 262 | if (typeof conditional !== 'string') throw new Error('Expecting a string.') |
| 263 | |
| 264 | const containsAllVersions = supportedVersions.every((arg) => conditional.includes(arg)) |
| 265 | const hasGhaeRange = ghaeRangeRegex.test(conditional) |
| 266 | return containsAllVersions && !hasGhaeRange |
| 267 | } |
no outgoing calls
no test coverage detected