@@ -103,7 +103,7 @@ public enum OPTLYSDKVersion
103
103
public string Datafile { get ; set ; }
104
104
105
105
/// <summary>
106
- /// Configured host name for the Optimizely Data Platform.
106
+ /// Configured host name for the Optimizely Data Platform.
107
107
/// </summary>
108
108
public string HostForOdp { get ; private set ; }
109
109
@@ -492,8 +492,7 @@ private static DatafileProjectConfig GetConfig(string configData)
492
492
! ( ( ( int ) supportedVersion ) . ToString ( ) == config . Version ) ) )
493
493
{
494
494
throw new ConfigParseException (
495
- $@ "This version of the C# SDK does not support the given datafile version: {
496
- config . Version } " ) ;
495
+ $@ "This version of the C# SDK does not support the given datafile version: { config . Version } ") ;
497
496
}
498
497
499
498
return config ;
@@ -632,8 +631,7 @@ public Variation GetVariationFromKey(string experimentKey, string variationKey)
632
631
return _VariationKeyMap [ experimentKey ] [ variationKey ] ;
633
632
}
634
633
635
- var message = $@ "No variation key ""{ variationKey
636
- } "" defined in datafile for experiment ""{ experimentKey } "".";
634
+ var message = $@ "No variation key ""{ variationKey } "" defined in datafile for experiment ""{ experimentKey } "".";
637
635
Logger . Log ( LogLevel . ERROR , message ) ;
638
636
ErrorHandler . HandleError (
639
637
new InvalidVariationException ( "Provided variation is not in datafile." ) ) ;
@@ -655,8 +653,7 @@ public Variation GetVariationFromKeyByExperimentId(string experimentId, string v
655
653
return _VariationKeyMapByExperimentId [ experimentId ] [ variationKey ] ;
656
654
}
657
655
658
- var message = $@ "No variation key ""{ variationKey
659
- } "" defined in datafile for experiment ""{ experimentId } "".";
656
+ var message = $@ "No variation key ""{ variationKey } "" defined in datafile for experiment ""{ experimentId } "".";
660
657
Logger . Log ( LogLevel . ERROR , message ) ;
661
658
ErrorHandler . HandleError (
662
659
new InvalidVariationException ( "Provided variation is not in datafile." ) ) ;
@@ -678,8 +675,7 @@ public Variation GetVariationFromId(string experimentKey, string variationId)
678
675
return _VariationIdMap [ experimentKey ] [ variationId ] ;
679
676
}
680
677
681
- var message = $@ "No variation ID ""{ variationId
682
- } "" defined in datafile for experiment ""{ experimentKey } "".";
678
+ var message = $@ "No variation ID ""{ variationId } "" defined in datafile for experiment ""{ experimentKey } "".";
683
679
Logger . Log ( LogLevel . ERROR , message ) ;
684
680
ErrorHandler . HandleError (
685
681
new InvalidVariationException ( "Provided variation is not in datafile." ) ) ;
@@ -704,8 +700,7 @@ public Variation GetVariationFromIdByExperimentId(string experimentId, string va
704
700
var message = $@ "No variation ID ""{ variationId
705
701
} "" defined in datafile for experiment ""{ experimentId } "".";
706
702
Logger . Log ( LogLevel . ERROR , message ) ;
707
- ErrorHandler . HandleError (
708
- new InvalidVariationException ( "Provided variation is not in datafile." ) ) ;
703
+ ErrorHandler . HandleError ( new InvalidVariationException ( "Provided variation is not in datafile." ) ) ;
709
704
return new Variation ( ) ;
710
705
}
711
706
@@ -788,9 +783,7 @@ public string GetAttributeId(string attributeKey)
788
783
if ( hasReservedPrefix )
789
784
{
790
785
Logger . Log ( LogLevel . WARN ,
791
- $@ "Attribute { attributeKey } unexpectedly has reserved prefix {
792
- RESERVED_ATTRIBUTE_PREFIX
793
- } ; using attribute ID instead of reserved attribute name.") ;
786
+ $@ "Attribute { attributeKey } unexpectedly has reserved prefix { RESERVED_ATTRIBUTE_PREFIX } ; using attribute ID instead of reserved attribute name.") ;
794
787
}
795
788
796
789
return attribute . Id ;
0 commit comments