GOFMT: changes to /exchange/attachment.go

This commit is contained in:
Danny Adams 2023-02-02 08:40:49 -05:00
parent eb129a4fe2
commit 88e494987a

View File

@ -56,9 +56,10 @@ func uploadAttachment(
// item Attachments to be skipped until the completion of Issue #2353
if attachmentType == models.ITEM_ATTACHMENTTYPE {
name := ""
if attachment.GetName() != nil{
name := *attachment.GetName()
if attachment.GetName() != nil {
name = *attachment.GetName()
}
logger.Ctx(ctx).Infow("item attachment uploads are not supported ",
"attachment_name", name, // TODO: Update to support PII protection
"attachment_type", attachmentType,