Skip to content

Commit 9e20f25

Browse files
glennawatsonRLittlesII
authored andcommitted
housekeeping: fix warning in WinRTAppDataDriver.cs (#1896)
1 parent 741577c commit 9e20f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReactiveUI/Platforms/uap10.0.16299/WinRTAppDataDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public IObservable<object> LoadState()
3131
.SelectMany(x => FileIO.ReadTextAsync(x, UnicodeEncoding.Utf8))
3232
.SelectMany(x =>
3333
{
34-
var line = x.IndexOf('\n');
34+
var line = x.IndexOf('\n', StringComparison.InvariantCulture);
3535
var typeName = x.Substring(0, line - 1); // -1 for CR
3636
var serializer = new DataContractSerializer(Type.GetType(typeName));
3737

0 commit comments

Comments
 (0)