Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Jan 16, 2025
1 parent 433f347 commit 0ae1833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (h *Handler) pullObject(ctx context.Context, record events.S3EventRecord) (
}

// Pre-allocate buffer size.
buf := make([]byte, int(head.ContentLength))
buf := make([]byte, int(*head.ContentLength))

w := manager.NewWriteAtBuffer(buf)

Expand Down
2 changes: 2 additions & 0 deletions internal/iamutils/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ type Client struct {
NotUsers []string
}

// IAM client interface.
type IAM interface {
ListUserTags(context.Context, *iam.ListUserTagsInput, ...func(*iam.Options)) (*iam.ListUserTagsOutput, error)
}

// NewClient for interacting with IAM.
func NewClient(iam IAM) *Client {
return &Client{iam: iam}
}
Expand Down

0 comments on commit 0ae1833

Please sign in to comment.