Skip to content

Commit c458e00

Browse files
authored
MigrationContext.TryGetValue - value asserted as not null when returning possibly true
1 parent 98cbed2 commit c458e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Orleans.Core/Lifecycle/MigrationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public bool TryGetValue<T>(string key, [NotNullWhen(true)] out T? value)
107107
var reader = Reader.Create(source, session);
108108
var field = reader.ReadFieldHeader();
109109
value = codec.ReadValue(ref reader, field);
110-
return true;
110+
return value is not null;
111111
}
112112

113113
value = default;

0 commit comments

Comments
 (0)