Skip to content

Commit 8407e6a

Browse files
committed
refactor: Use github.Ptr instead of github.String
Addresses review feedback to use consistent Ptr helper.
1 parent e1df955 commit 8407e6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github/resource_github_enterprise_organization.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ func updateDescription(ctx context.Context, data *schema.ResourceData, v3 *githu
324324
ctx,
325325
orgName,
326326
&github.Organization{
327-
Description: github.String(newDesc),
327+
Description: github.Ptr(newDesc),
328328
},
329329
)
330330
if err != nil {
@@ -349,7 +349,7 @@ func updateDisplayName(ctx context.Context, data *schema.ResourceData, v4 *githu
349349
ctx,
350350
orgName,
351351
&github.Organization{
352-
Name: github.String(newDisplayName),
352+
Name: github.Ptr(newDisplayName),
353353
},
354354
)
355355
if err != nil {

0 commit comments

Comments
 (0)