aboutsummaryrefslogtreecommitdiff
path: root/ref/store/files/update_validate.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-29 10:14:38 +0000
committerGravatar Runxi Yu2026-03-29 10:17:15 +0000
commit32f84b9d89d34ab74f8843f939f8d1d811d403ad (patch)
tree90786209ddd050ad2676a7d0404b78d8d278e1f2 /ref/store/files/update_validate.go
parentobject/{id,header,signature,type}: Update docs (diff)
signatureNo signature
object/id: Split files
Diffstat (limited to 'ref/store/files/update_validate.go')
-rw-r--r--ref/store/files/update_validate.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ref/store/files/update_validate.go b/ref/store/files/update_validate.go
index cfbaca1d..ac3429aa 100644
--- a/ref/store/files/update_validate.go
+++ b/ref/store/files/update_validate.go
@@ -21,7 +21,7 @@ func (executor *refUpdateExecutor) validateQueuedUpdate(op queuedUpdate) error {
return wrapUpdateError(op.name, &refstore.InvalidNameError{Err: err})
}
- if op.newID.Size() == 0 {
+ if op.newID.Algorithm().Size() == 0 {
return wrapUpdateError(op.name, &refstore.InvalidValueError{Err: objectid.ErrInvalidAlgorithm})
}
case updateDelete, updateVerify:
@@ -30,7 +30,7 @@ func (executor *refUpdateExecutor) validateQueuedUpdate(op queuedUpdate) error {
return wrapUpdateError(op.name, &refstore.InvalidNameError{Err: err})
}
- if op.oldID.Size() == 0 {
+ if op.oldID.Algorithm().Size() == 0 {
return wrapUpdateError(op.name, &refstore.InvalidValueError{Err: objectid.ErrInvalidAlgorithm})
}
case updateCreateSymbolic, updateReplaceSymbolic: