Skip to content

Commit 6c181c4

Browse files
committed
AXON-72: fix linting errors
1 parent 891488f commit 6c181c4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class Container {
220220
analyticsApi: VSCAnalyticsApi,
221221
bitbucketHelper: CheckoutHelper,
222222
) {
223-
if(FeatureFlagClient.checkGate(Features.EnableNewUriHandler)){
223+
if (FeatureFlagClient.checkGate(Features.EnableNewUriHandler)) {
224224
console.log('Using new URI handler');
225225
context.subscriptions.push(AtlascodeUriHandler.create(analyticsApi, bitbucketHelper));
226226
} else {

src/util/featureFlags/client.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class FeatureFlagClient {
4040
});
4141
})
4242
.then(() => {
43-
// console log all feature gates and values
43+
// console log all feature gates and values
4444
for (const feat of Object.values(Features)) {
4545
console.log(`FeatureGates: ${feat} -> ${FeatureGates.checkGate(feat)}`);
4646
}
@@ -55,12 +55,12 @@ export class FeatureFlagClient {
5555
}
5656

5757
public static checkGate(gate: string) {
58-
var gateValue = false
59-
if( FeatureGates == null) {
58+
var gateValue = false;
59+
if (FeatureGates === null) {
6060
console.warn('FeatureGates: FeatureGates is not initialized. Defaulting to False');
6161
} else {
6262
// FeatureGates.checkGate returns false if any errors
63-
gateValue = FeatureGates.checkGate(gate);
63+
gateValue = FeatureGates.checkGate(gate);
6464
}
6565
console.log(`FeatureGates: ${gate} -> ${gateValue}`);
6666
return gateValue;
@@ -70,6 +70,7 @@ export class FeatureFlagClient {
7070
const featureFlags = await Promise.all(
7171
Object.values(Features).map(async (feature) => {
7272
return {
73+
// eslint-disable-next-line @typescript-eslint/await-thenable
7374
[feature]: await this.checkGate(feature),
7475
};
7576
}),

0 commit comments

Comments
 (0)