No reason to use pointers to arrays.

This commit is contained in:
Syfaro 2018-10-08 23:32:34 -05:00
parent 4d758f17d4
commit cdcb93df5f
4 changed files with 27 additions and 27 deletions

View file

@ -737,7 +737,7 @@ func NewCallbackWithAlert(id, text string) CallbackConfig {
}
// NewInvoice creates a new Invoice request to the user.
func NewInvoice(chatID int64, title, description, payload, providerToken, startParameter, currency string, prices *[]LabeledPrice) InvoiceConfig {
func NewInvoice(chatID int64, title, description, payload, providerToken, startParameter, currency string, prices []LabeledPrice) InvoiceConfig {
return InvoiceConfig{
BaseChat: BaseChat{ChatID: chatID},
Title: title,