File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ export class Container {
220
220
analyticsApi : VSCAnalyticsApi ,
221
221
bitbucketHelper : CheckoutHelper ,
222
222
) {
223
- if ( FeatureFlagClient . checkGate ( Features . EnableNewUriHandler ) ) {
223
+ if ( FeatureFlagClient . checkGate ( Features . EnableNewUriHandler ) ) {
224
224
console . log ( 'Using new URI handler' ) ;
225
225
context . subscriptions . push ( AtlascodeUriHandler . create ( analyticsApi , bitbucketHelper ) ) ;
226
226
} else {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class FeatureFlagClient {
40
40
} ) ;
41
41
} )
42
42
. then ( ( ) => {
43
- // console log all feature gates and values
43
+ // console log all feature gates and values
44
44
for ( const feat of Object . values ( Features ) ) {
45
45
console . log ( `FeatureGates: ${ feat } -> ${ FeatureGates . checkGate ( feat ) } ` ) ;
46
46
}
@@ -55,12 +55,12 @@ export class FeatureFlagClient {
55
55
}
56
56
57
57
public static checkGate ( gate : string ) {
58
- var gateValue = false
59
- if ( FeatureGates == null ) {
58
+ var gateValue = false ;
59
+ if ( FeatureGates = == null ) {
60
60
console . warn ( 'FeatureGates: FeatureGates is not initialized. Defaulting to False' ) ;
61
61
} else {
62
62
// FeatureGates.checkGate returns false if any errors
63
- gateValue = FeatureGates . checkGate ( gate ) ;
63
+ gateValue = FeatureGates . checkGate ( gate ) ;
64
64
}
65
65
console . log ( `FeatureGates: ${ gate } -> ${ gateValue } ` ) ;
66
66
return gateValue ;
@@ -70,6 +70,7 @@ export class FeatureFlagClient {
70
70
const featureFlags = await Promise . all (
71
71
Object . values ( Features ) . map ( async ( feature ) => {
72
72
return {
73
+ // eslint-disable-next-line @typescript-eslint/await-thenable
73
74
[ feature ] : await this . checkGate ( feature ) ,
74
75
} ;
75
76
} ) ,
You can’t perform that action at this time.
0 commit comments