Rename featureEnablement to features

This is more succinct and removes a few line breaks
This commit is contained in:
Henry Mercer
2023-03-09 16:46:51 +00:00
parent fc1366f6ec
commit 485cc11a24
21 changed files with 160 additions and 174 deletions

6
lib/feature-flags.js generated
View File

@@ -188,12 +188,12 @@ class GitHubFeatureFlags {
this.logger.debug(`No feature flags API response for ${feature}, considering it disabled.`);
return false;
}
const featureEnablement = response[feature];
if (featureEnablement === undefined) {
const features = response[feature];
if (features === undefined) {
this.logger.debug(`Feature '${feature}' undefined in API response, considering it disabled.`);
return false;
}
return !!featureEnablement;
return !!features;
}
async getAllFeatures() {
// if we have an in memory cache, use that