[chore] Tiny tweak to ApprovedByURI (#3234)

This commit is contained in:
tobi 2024-08-25 15:44:08 +02:00 committed by GitHub
parent d3887bf6cc
commit 2bd31ab710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -523,7 +523,9 @@ func (d *Dereferencer) enrichStatus(
//
// If a remote has in the meantime retracted its approval,
// the next call to 'isPermittedStatus' will catch that.
latestStatus.ApprovedByURI = status.ApprovedByURI
if latestStatus.ApprovedByURI == "" && status.ApprovedByURI != "" {
latestStatus.ApprovedByURI = status.ApprovedByURI
}
// Check if this is a permitted status we should accept.
// Function also sets "PendingApproval" bool as necessary.