Rename featureEnablement to features
This is more succinct and removes a few line breaks
This commit is contained in:
parent
fc1366f6ec
commit
485cc11a24
21 changed files with 160 additions and 174 deletions
6
lib/feature-flags.js
generated
6
lib/feature-flags.js
generated
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue