mirror of
https://github.com/distribution/distribution.git
synced 2025-06-22 21:50:56 +00:00
remove duplicated code
Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
parent
5f8b59177b
commit
eda5fe2d67
4
registry/storage/cache/redis/redis.go
vendored
4
registry/storage/cache/redis/redis.go
vendored
@ -135,10 +135,6 @@ func (rbds *redisBlobDescriptorService) SetDescriptor(ctx context.Context, dgst
|
||||
return err
|
||||
}
|
||||
|
||||
if err := cache.ValidateDescriptor(desc); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return rbds.setDescriptor(ctx, rbds.pool, dgst, desc)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user