Skip to content

Commit 5a0b765

Browse files
committed
Fix nullability warnng in latest .NET Core SDK.
1 parent 7159b63 commit 5a0b765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Protocol/Serialization/ByteBufferWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void Write(ReadOnlySpan<byte> span)
104104
public void Write(string value)
105105
{
106106
Debug.Assert(value is object, "value is object");
107-
if (value.Length == 0)
107+
if (value!.Length == 0)
108108
return;
109109

110110
var byteCount = Encoding.UTF8.GetByteCount(value);

0 commit comments

Comments
 (0)