File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export class FeatureFlagTracingOptions {
3030 this . usesCustomFilter = true ;
3131 }
3232 }
33-
33+
3434 usesAnyFeatureFilter ( ) : boolean {
3535 return this . usesCustomFilter || this . usesTimeWindowFilter || this . usesTargetingFilter ;
3636 }
@@ -39,27 +39,27 @@ export class FeatureFlagTracingOptions {
3939 if ( ! this . usesAnyFeatureFilter ( ) ) {
4040 return "" ;
4141 }
42-
42+
4343 let result : string = "" ;
44-
44+
4545 if ( this . usesCustomFilter ) {
46- result += CUSTOM_FILTER_KEY
46+ result += CUSTOM_FILTER_KEY ;
4747 }
48-
48+
4949 if ( this . usesTimeWindowFilter ) {
5050 if ( result !== "" ) {
5151 result += DELIMITER ;
5252 }
5353 result += TIME_WINDOW_FILTER_KEY ;
5454 }
55-
55+
5656 if ( this . usesTargetingFilter ) {
5757 if ( result !== "" ) {
5858 result += DELIMITER ;
5959 }
6060 result += TARGETING_FILTER_KEY ;
6161 }
62-
62+
6363 return result ;
6464 }
6565}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import * as fs from "fs";
66let server ;
77
88const domain = "localhost" ;
9- const port = 443
9+ const port = 443 ;
1010
1111function startMockServer ( settings : ConfigurationSetting [ ] ) {
1212 const attrs = [ { name : "commonName" , value : domain } ] ;
@@ -20,16 +20,16 @@ function startMockServer(settings: ConfigurationSetting[]) {
2020 key : fs . readFileSync ( "server.key" ) ,
2121 cert : fs . readFileSync ( "server.cert" )
2222 } ;
23-
23+
2424 const responseBody = {
2525 items : [ ...settings ]
2626 } ;
2727
2828 server = https . createServer ( options , ( req , res ) => {
2929 res . writeHead ( 200 , { "Content-Type" : "application/json" } ) ;
30- res . end ( JSON . stringify ( responseBody ) ) ;
30+ res . end ( JSON . stringify ( responseBody ) ) ;
3131 } ) ;
32-
32+
3333 server . listen ( port ) ;
3434}
3535
@@ -43,4 +43,4 @@ export {
4343 startMockServer ,
4444 closeMockServer ,
4545 mockServerEndpoint
46- }
46+ } ;
You can’t perform that action at this time.
0 commit comments