Skip to content

Commit

Permalink
Fix response err for successful UpdateProject
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejsstepanovs authored Dec 28, 2024
1 parent 04c0d4a commit b651435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (c *Client) UpdateProject(project Project) error {
if res.StatusCode == 404 {
return errors.New("Not Found")
}
if res.StatusCode != 200 {
if res.StatusCode != 200 && res.StatusCode != 204 {
decoder := json.NewDecoder(res.Body)
var er errorsResult
err = decoder.Decode(&er)
Expand Down

0 comments on commit b651435

Please sign in to comment.