Skip to content

Commit d92875a

Browse files
committed
Remove commented code in JamfAPIHandler
1 parent 73236b1 commit d92875a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apihandlers/jamfpro/jamfpro_api_response.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func (j *JamfAPIHandler) HandleAPIErrorResponse(resp *http.Response, out interfa
7272
return fmt.Errorf("received non-success status code: %d, raw response: %s", resp.StatusCode, rawResponse)
7373
}
7474

75+
/*
7576
// HandleResponse processes an HTTP response for a Jamf API request. It handles different response types and errors accordingly.
7677
func (j *JamfAPIHandler) HandleResponse(resp *http.Response, out interface{}, log logger.Logger) error {
7778
// Special handling for DELETE requests
@@ -119,7 +120,7 @@ func (j *JamfAPIHandler) HandleResponse(resp *http.Response, out interface{}, lo
119120
// Unmarshal the response based on content type
120121
return j.unmarshalResponse(contentType, bodyBytes, out)
121122
}
122-
123+
*/
123124
// handleDeleteRequest handles the special case for DELETE requests, where a successful response might not contain a body.
124125
func (j *JamfAPIHandler) handleDeleteRequest(resp *http.Response) error {
125126
if resp.StatusCode >= 200 && resp.StatusCode < 300 {

0 commit comments

Comments
 (0)