File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,8 @@ private void SetupCmdletsDictionary()
274
274
}
275
275
}
276
276
277
+ referencePlatform = defaultReferencePlatform ;
278
+ #if DEBUG
277
279
// Setup reference file
278
280
object referenceObject ;
279
281
if ( ruleArgs . TryGetValue ( "reference" , out referenceObject ) )
@@ -284,16 +286,6 @@ private void SetupCmdletsDictionary()
284
286
return ;
285
287
}
286
288
}
287
- else
288
- {
289
- referencePlatform = defaultReferencePlatform ;
290
- }
291
-
292
- // check if the reference file has valid platformSpec
293
- if ( ! IsValidPlatformString ( referencePlatform ) )
294
- {
295
- return ;
296
- }
297
289
298
290
object modeObject ;
299
291
if ( ruleArgs . TryGetValue ( "mode" , out modeObject ) )
@@ -322,6 +314,13 @@ private void SetupCmdletsDictionary()
322
314
323
315
return ;
324
316
}
317
+ #endif
318
+
319
+ // check if the reference file has valid platformSpec
320
+ if ( ! IsValidPlatformString ( referencePlatform ) )
321
+ {
322
+ return ;
323
+ }
325
324
326
325
var settingsPath = GetShippedSettingsDirectory ( ) ;
327
326
if ( settingsPath == null
You can’t perform that action at this time.
0 commit comments