mirror of
https://github.com/badkaktus/gorocket.git
synced 2024-12-12 11:15:05 +02:00
fix formatting
This commit is contained in:
parent
0422f7a38f
commit
8cc2f17225
4
chat.go
4
chat.go
@ -247,10 +247,10 @@ func (c *Client) GetPinnedMessages(param *GetPinnedMsgRequest) (*GetPinnedMsgRes
|
||||
url.Add("roomId", param.RoomId)
|
||||
}
|
||||
if param.Offset != 0 {
|
||||
url.Add("offset", string(param.Offset))
|
||||
url.Add("offset", fmt.Sprintf("%d", param.Offset))
|
||||
}
|
||||
if param.Count != 0 {
|
||||
url.Add("count", string(param.Count))
|
||||
url.Add("count", fmt.Sprintf("%d", param.Count))
|
||||
}
|
||||
req.URL.RawQuery = url.Encode()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user