summaryrefslogtreecommitdiff
path: root/Hutch/Networking/SRHTError.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-15 19:25:27 -0500
committerChristian Cleberg <[email protected]>2026-07-15 19:25:27 -0500
commit7ffef07278e94bd3c268ee5cbd5c9c11cbfa3270 (patch)
tree7cec3dc403138d905694b0a74aa17498508de085 /Hutch/Networking/SRHTError.swift
parent63d0491b161457913c938d620dc1f26f29c798a9 (diff)
downloadhutch-7ffef07278e94bd3c268ee5cbd5c9c11cbfa3270.tar.gz
hutch-7ffef07278e94bd3c268ee5cbd5c9c11cbfa3270.tar.bz2
hutch-7ffef07278e94bd3c268ee5cbd5c9c11cbfa3270.zip
fix: allow clearing a repository description
metadataInputForSave assigned nil through the dictionary subscript to clear a description. Swift removes the key on a nil subscript assignment, so the mutation was sent with no `description` field and the old value survived — clearing a description silently did nothing. Store the nil with updateValue so the key is retained; AnyCodable already encodes an unmatched value as a JSON null.
Diffstat (limited to 'Hutch/Networking/SRHTError.swift')
0 files changed, 0 insertions, 0 deletions