1
0
mirror of https://github.com/bitwarden/server synced 2025-12-26 05:03:18 +00:00

remove comment

This commit is contained in:
Nick Krantz
2025-10-08 10:59:29 -05:00
parent 91ddc737d8
commit 97a78d9131

View File

@@ -310,10 +310,6 @@ public class CipherRequestModel
? new Dictionary<string, object>()
: JsonSerializer.Deserialize<Dictionary<string, object>>(existingJson) ?? new Dictionary<string, object>();
// Remove the key from the value when:
// - new value is null
// - new value is an empty or whitespace string
// - new value is a boolean false
var shouldRemove = newValue == null ||
(newValue is string strValue && string.IsNullOrWhiteSpace(strValue)) ||
(newValue is bool boolValue && !boolValue);