diff --git a/README.md b/README.md index 552751e..6d5c160 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ [![arcli](https://snapcraft.io//arcli/badge.svg)](https://snapcraft.io/arcli) ### `arcli` - Awesome Redmine CLI -`arcli` is CLI for [Redmine](https://www.redmine.org/) that simplifies some actions such as checking for issue details and tracking time. +`arcli` is CLI for [Redmine](https://www.redmine.org/) that simplifies some actions such as checking for issue details and tracking time. +It supports Redmine v3.3.1+ (tested with v3.3.1 and v4.1.0). ## Installation diff --git a/client/timeentry.go b/client/timeentry.go index 63dee2d..79a4af1 100644 --- a/client/timeentry.go +++ b/client/timeentry.go @@ -118,7 +118,7 @@ func (c *Client) DeleteTimeEntry(id int) error { defer resp.Body.Close() switch resp.StatusCode { - case http.StatusOK: + case http.StatusOK, http.StatusNoContent: return nil case http.StatusNotFound: return fmt.Errorf("there is no time entry with id %v", id)