Skip to content

Update estb_firmware_context.go#80

Open
RahulRengeshOfficial wants to merge 5 commits into
gopi_devfrom
enhancements
Open

Update estb_firmware_context.go#80
RahulRengeshOfficial wants to merge 5 commits into
gopi_devfrom
enhancements

Conversation

@RahulRengeshOfficial
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread dataapi/estb_firmware_context.go Outdated
log.WithFields(log.Fields{"error": err}).Error("Error getting AccountService information")
} else {
} else if len(accountProducts) > 0 {
if partner, ok := accountProducts["Partner"]; ok && partner != "" {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we separate out like this below,

if len(accountProducts) == 0 {
log.WithFields(fields).Warn("Empty or nil response from ADA keyspace")
return fmt.Errorf("empty account products response")
}

// Successfully retrieved, update context
if partner, ok := accountProducts["Partner"]; ok && partner != "" {
contextMap[common.PARTNER_ID] = partner
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants