Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeker12 committed Jul 9, 2024
1 parent 8033791 commit dcf2d5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions jamf/jamfprointegration/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ func (j *Integration) CheckRefreshToken() error {

// TODO migrate strings
func (j *Integration) PrepRequestParamsAndAuth(req *http.Request) error {
err := j.prepRequest(req)
return err
return j.prepRequest(req)
}

// TODO migrate strings
Expand Down
1 change: 0 additions & 1 deletion jamf/jamfprointegration/marshall.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (j *Integration) marshalRequest(body interface{}, method string, endpoint s
err error
)

// Determine the format based on the endpoint
format := "json"
if strings.Contains(endpoint, "/JSSResource") {
format = "xml"
Expand Down

0 comments on commit dcf2d5f

Please sign in to comment.