mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Rename featureEnablement to features
This is more succinct and removes a few line breaks
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user