File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/client/common/experiments Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ Ensure all users use new discovery code regardless of their experiment settings.
Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ export class ExperimentService implements IExperimentService {
109109 }
110110
111111 public inExperimentSync ( experiment : string ) : boolean {
112+ if ( experiment === DiscoveryVariants . discoveryWithoutFileWatching ) {
113+ // Enable discovery experiment for all users.
114+ return true ;
115+ }
116+
112117 if ( ! this . experimentationService ) {
113118 return false ;
114119 }
@@ -127,11 +132,6 @@ export class ExperimentService implements IExperimentService {
127132 return true ;
128133 }
129134
130- if ( experiment === DiscoveryVariants . discoveryWithoutFileWatching ) {
131- // Enable discovery experiment for all users.
132- return true ;
133- }
134-
135135 // If getTreatmentVariable returns undefined,
136136 // it means that the value for this experiment was not found on the server.
137137 const treatmentVariable = this . experimentationService . getTreatmentVariable ( EXP_CONFIG_ID , experiment ) ;
You can’t perform that action at this time.
0 commit comments