Skip to content

Commit 8885c9b

Browse files
committed
container_update: fix non-constant format string error
1 parent 1147acb commit 8885c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type UpdateContainerOptions struct {
3030
//
3131
// See https://goo.gl/Y6fXUy for more details.
3232
func (c *Client) UpdateContainer(id string, opts UpdateContainerOptions) error {
33-
resp, err := c.do(http.MethodPost, fmt.Sprintf("/containers/"+id+"/update"), doOptions{
33+
resp, err := c.do(http.MethodPost, fmt.Sprintf("/containers/%s/update", id), doOptions{
3434
data: opts,
3535
forceJSON: true,
3636
context: opts.Context,

0 commit comments

Comments
 (0)