Skip to content

Commit 11ad03f

Browse files
committed
Refactor APIHandler interface and remove unnecessary code
1 parent 7db7418 commit 11ad03f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

internal/apihandlers/jamfpro/jamfpro_api_handler.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ if err != nil {
338338
zap.Error(err),
339339
)
340340

341-
return nil
342341
}
343342

344343
// GetAcceptHeader constructs and returns a weighted Accept header string for HTTP requests.

internal/httpclient/api_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"go.uber.org/zap"
1010
)
1111

12-
// APIHandler is an interface for encoding, decoding, and determining content types for different API implementations.
12+
// APIHandler is an interface for encoding, decoding, and implenting contexual api functions for different API implementations.
1313
// It encapsulates behavior for encoding and decoding requests and responses.
1414
type APIHandler interface {
1515
GetBaseDomain() string

0 commit comments

Comments
 (0)