Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaeta committed Sep 25, 2024
1 parent 050fca5 commit bef70e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/connector/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/conductorone/baton-jamf/pkg/jamf"
v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2"
"github.com/conductorone/baton-sdk/pkg/annotations"
"github.com/conductorone/baton-sdk/pkg/helpers"
"github.com/conductorone/baton-sdk/pkg/pagination"
rs "github.com/conductorone/baton-sdk/pkg/types/resource"
)
Expand All @@ -23,7 +22,7 @@ func (o *userResourceType) ResourceType(_ context.Context) *v2.ResourceType {

// Create a new connector resource for a Jamf user.
func userResource(user *jamf.User, parentResourceID *v2.ResourceId) (*v2.Resource, error) {
firstName, lastName := helpers.SplitFullName(user.FullName)
firstName, lastName := rs.SplitFullName(user.FullName)
profile := map[string]interface{}{
"first_name": firstName,
"last_name": lastName,
Expand Down
3 changes: 1 addition & 2 deletions pkg/connector/userAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/conductorone/baton-jamf/pkg/jamf"
v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2"
"github.com/conductorone/baton-sdk/pkg/annotations"
"github.com/conductorone/baton-sdk/pkg/helpers"
"github.com/conductorone/baton-sdk/pkg/pagination"
rs "github.com/conductorone/baton-sdk/pkg/types/resource"
)
Expand All @@ -23,7 +22,7 @@ func (o *userAccountResourceType) ResourceType(_ context.Context) *v2.ResourceTy

// Create a new connector resource for a Jamf user account.
func userAccountResource(account *jamf.UserAccount, parentResourceID *v2.ResourceId) (*v2.Resource, error) {
firstName, lastName := helpers.SplitFullName(account.Name)
firstName, lastName := rs.SplitFullName(account.Name)
profile := map[string]interface{}{
"first_name": firstName,
"last_name": lastName,
Expand Down

0 comments on commit bef70e9

Please sign in to comment.