mirror of
https://github.com/containers/skopeo.git
synced 2026-02-22 07:06:32 +00:00
signature.NewEphemeralGPGSigningMechanism is called in an if branch where the previous err := introduces a "new" err variable, which means the failure isn't visible after the if. So, do the dumb thing and just check on both branches explicitly. (We still need to worry about correctly setting "mech" and "publicKeyfingerprints" to persist after the if.) How I hate Go sometimes. And this shows we really should update the linter. Signed-off-by: Miloslav Trmač <mitr@redhat.com>