Change IsDeleted method to check for nil Blob

This commit is contained in:
Jay shah 2026-02-14 23:37:34 +05:30 committed by GitHub
parent ad88b68a46
commit b9d025e4a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ func (n *Node) Size() int {
// IsDeleted returns the indicator if the node is marked as deleted.
func (n *Node) IsDeleted() bool {
return len(n.Blob) == 0
return n.Blob == nil
}
// New constructs a node with provided node information.