mirror of https://github.com/docker/docs.git
fix roleExpired varname, it shadowed a func name
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
parent
fb76bca9f0
commit
eb75898c43
|
@ -96,8 +96,8 @@ func contentExpired(gun string, sn *data.SignedSnapshot, store storage.MetaStore
|
|||
if err != nil {
|
||||
return false
|
||||
}
|
||||
roleExpired, newHash := roleExpired(curr, meta)
|
||||
if roleExpired {
|
||||
roleExp, newHash := roleExpired(curr, meta)
|
||||
if roleExp {
|
||||
updatedMeta[role] = data.FileMeta{
|
||||
Length: int64(len(curr)),
|
||||
Hashes: data.Hashes{
|
||||
|
@ -105,7 +105,7 @@ func contentExpired(gun string, sn *data.SignedSnapshot, store storage.MetaStore
|
|||
},
|
||||
}
|
||||
}
|
||||
expired = expired || roleExpired
|
||||
expired = expired || roleExp
|
||||
}
|
||||
if expired {
|
||||
sn.Signed.Meta = updatedMeta
|
||||
|
|
Loading…
Reference in New Issue