Skip to content

Commit

Permalink
fix some lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ansel1 committed Sep 6, 2022
1 parent ab84eda commit 9870422
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions kmip20/op_activate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:dupl
package kmip20

import (
Expand Down Expand Up @@ -26,6 +27,7 @@ type ActivateHandler struct {

func (h *ActivateHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error) {
var payload ActivateRequestPayload

err := req.DecodePayload(&payload)
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions kmip20/op_destroy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//nolint:dupl
package kmip20

import (
Expand Down
2 changes: 1 addition & 1 deletion kmip20/op_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
)

// GetRequestPayload ////////////////////////////////////////
//
type GetRequestPayload struct {
UniqueIdentifier *UniqueIdentifierValue
}
Expand All @@ -26,6 +25,7 @@ type GetHandler struct {

func (h *GetHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error) {
var payload GetRequestPayload

err := req.DecodePayload(&payload)
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions kmip20/op_locate.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type LocateHandler struct {

func (h *LocateHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error) {
var payload LocateRequestPayload

err := req.DecodePayload(&payload)
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions kmip20/op_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ type QueryHandler struct {

func (h *QueryHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error) {
var payload QueryRequestPayload

err := req.DecodePayload(&payload)
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions kmip20/op_revoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type RevokeHandler struct {

func (h *RevokeHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error) {
var payload RevokeRequestPayload

err := req.DecodePayload(&payload)
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions kmip20/op_setattribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type SetAttributeHandler struct {

func (h *SetAttributeHandler) HandleItem(ctx context.Context, req *kmip.Request) (*kmip.ResponseBatchItem, error) {
var payload SetAttributeRequestPayload

err := req.DecodePayload(&payload)
if err != nil {
return nil, err
Expand Down

0 comments on commit 9870422

Please sign in to comment.