Skip to content

Commit 8058dbd

Browse files
committed
Remove unnecessary d.Set("role_id")
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent 19118ce commit 8058dbd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

github/resource_github_organization_repository_role.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,15 +170,11 @@ func resourceGithubOrganizationRepositoryRoleUpdate(ctx context.Context, d *sche
170170
Permissions: permissionsStr,
171171
}
172172

173-
role, _, err := client.Organizations.UpdateCustomRepoRole(ctx, orgName, roleId, update)
173+
_, _, err = client.Organizations.UpdateCustomRepoRole(ctx, orgName, roleId, update)
174174
if err != nil {
175175
return diag.FromErr(fmt.Errorf("error updating GitHub organization repository role (%s/%s): %w", orgName, d.Get("name").(string), err))
176176
}
177177

178-
if err = d.Set("role_id", role.GetID()); err != nil {
179-
return diag.FromErr(err)
180-
}
181-
182178
return nil
183179
}
184180

0 commit comments

Comments
 (0)