Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 11e3058

Browse files
authoredMar 27, 2024··
Apply suggestions from code review
1 parent dee3979 commit 11e3058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎user.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func (cli *Client) parseBusinessProfile(node *waBinary.Node) (*types.BusinessPro
283283
}, nil
284284
}
285285

286-
// GetBusinessProfile gets profile info of business whatsapp account
286+
// GetBusinessProfile gets the profile info of a WhatsApp business account
287287
func (cli *Client) GetBusinessProfile(jid types.JID) (*types.BusinessProfile, error) {
288288
resp, err := cli.sendIQ(infoQuery{
289289
Type: iqGet,
@@ -307,7 +307,7 @@ func (cli *Client) GetBusinessProfile(jid types.JID) (*types.BusinessProfile, er
307307
}
308308
node, ok := resp.GetOptionalChildByTag("business_profile")
309309
if !ok {
310-
return nil, &ElementMissingError{Tag: "business_profile", In: "response empty"}
310+
return nil, &ElementMissingError{Tag: "business_profile", In: "response to business profile query"}
311311
}
312312
return cli.parseBusinessProfile(&node)
313313
}

0 commit comments

Comments
 (0)
Please sign in to comment.