Skip to content

Commit 364efd4

Browse files
committed
Fix build warning
1 parent 5ead782 commit 364efd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/LightningDB/LightningTransaction.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public unsafe MDBResultCode Delete(LightningDatabase db, ReadOnlySpan<byte> key,
194194
fixed (byte* valuePtr = value)
195195
{
196196
var mdbKey = new MDBValue(key.Length, keyPtr);
197-
if (value == null)
197+
if (value.IsEmpty)
198198
{
199199
return mdb_del(_handle, db._handle, mdbKey);
200200
}

0 commit comments

Comments
 (0)