Skip to content

Commit

Permalink
Fix return status for deleting dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
borodiychuk committed Oct 26, 2020
1 parent 8569c6c commit 3c70139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (c *DatasetClient) Delete(ctx context.Context, id string, params *DatasetPa
method := http.MethodDelete
status, err := c.backend.Request(ctx, method, path, params, nil)
switch status {
case http.StatusOK:
case http.StatusNoContent:
case http.StatusUnauthorized:
return ErrAuth
case http.StatusForbidden:
Expand Down

0 comments on commit 3c70139

Please sign in to comment.