Skip to content

Commit

Permalink
Fix: Early exit when deleting label
Browse files Browse the repository at this point in the history
 Allow status code 204 to be valid and not error on label delete
  • Loading branch information
rodcloutier authored and mrueg committed Sep 6, 2024
1 parent 0e8ce18 commit 24438a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/confluence/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ func (api *API) DeletePageLabel(page *PageInfo, label string) (*LabelInfo, error
return nil, err
}

if request.Raw.StatusCode != http.StatusOK {
if request.Raw.StatusCode != http.StatusOK && request.Raw.StatusCode != http.StatusNoContent {
return nil, newErrorStatusNotOK(request)
}

Expand Down

0 comments on commit 24438a2

Please sign in to comment.