Remove needless slash

This commit is contained in:
178inaba 2017-05-12 10:25:15 +09:00
parent f279adb618
commit add4e3e9cd
8 changed files with 47 additions and 47 deletions

View file

@ -16,7 +16,7 @@ type Report struct {
// GetReports return report of the current user.
func (c *Client) GetReports(ctx context.Context) ([]*Report, error) {
var reports []*Report
err := c.doAPI(ctx, http.MethodGet, "/api/v1/reports", nil, &reports, nil)
err := c.doAPI(ctx, http.MethodGet, "api/v1/reports", nil, &reports, nil)
if err != nil {
return nil, err
}
@ -32,7 +32,7 @@ func (c *Client) Report(ctx context.Context, accountID int64, ids []int64, comme
}
params.Set("comment", comment)
var report Report
err := c.doAPI(ctx, http.MethodPost, "/api/v1/reports", params, &report, nil)
err := c.doAPI(ctx, http.MethodPost, "api/v1/reports", params, &report, nil)
if err != nil {
return nil, err
}