Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenleach committed Nov 19, 2024
1 parent 06bfc4f commit 6c9421a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion pkg/connector/custom_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ func (o *customRoleResourceType) Grants(
if userRoles.ContainsOne(resource.Id.GetResource()) {
rv = append(rv, roleGrant(userId, resource))
}

}

pageToken, err := bag.Marshal()
Expand Down
9 changes: 0 additions & 9 deletions pkg/connector/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,3 @@ func handleOktaResponseError(resp *okta.Response, err error) error {
}
return err
}

func unmarshalRolesToken(token *pagination.Token) (*pagination.Bag, error) {
b := &pagination.Bag{}
err := b.Unmarshal(token.Token)
if err != nil {
return nil, err
}
return b, nil
}
2 changes: 1 addition & 1 deletion pkg/connector/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Link struct {
}

// Id is the role assignment id
// Role is the role id
// Role is the role id.
type Roles struct {
Links interface{} `json:"_links,omitempty"`
AssignmentType string `json:"assignmentType,omitempty"`
Expand Down

0 comments on commit 6c9421a

Please sign in to comment.