mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Remove commented out code
We can always recover it from git, but it seems to serve no purpose anyway. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -142,16 +142,12 @@ func getPolicyShowOutput(policyContentStruct trust.PolicyContent, systemRegistri
|
|||||||
Transport: transport,
|
Transport: transport,
|
||||||
Type: trustTypeDescription(repoval[0].Type),
|
Type: trustTypeDescription(repoval[0].Type),
|
||||||
}
|
}
|
||||||
// TODO - keyarr is not used and I don't know its intent; commenting out for now for someone to fix later
|
|
||||||
// keyarr := []string{}
|
|
||||||
uids := []string{}
|
uids := []string{}
|
||||||
for _, repoele := range repoval {
|
for _, repoele := range repoval {
|
||||||
if len(repoele.KeyPath) > 0 {
|
if len(repoele.KeyPath) > 0 {
|
||||||
// keyarr = append(keyarr, repoele.KeyPath)
|
|
||||||
uids = append(uids, trust.GetGPGIdFromKeyPath(repoele.KeyPath)...)
|
uids = append(uids, trust.GetGPGIdFromKeyPath(repoele.KeyPath)...)
|
||||||
}
|
}
|
||||||
if len(repoele.KeyData) > 0 {
|
if len(repoele.KeyData) > 0 {
|
||||||
// keyarr = append(keyarr, string(repoele.KeyData))
|
|
||||||
uids = append(uids, trust.GetGPGIdFromKeyData(repoele.KeyData)...)
|
uids = append(uids, trust.GetGPGIdFromKeyData(repoele.KeyData)...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user