Skip to content

Commit 3ef03df

Browse files
fix: use diag.Errorf instead of diag.FromErr(fmt.Errorf)
1 parent 574d10a commit 3ef03df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

github/data_source_github_enterprise_team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func dataSourceGithubEnterpriseTeamRead(ctx context.Context, d *schema.ResourceD
7575
return diag.FromErr(err)
7676
}
7777
if found == nil {
78-
return diag.FromErr(fmt.Errorf("could not find enterprise team %d in enterprise %s", teamID, enterpriseSlug))
78+
return diag.Errorf("could not find enterprise team %d in enterprise %s", teamID, enterpriseSlug)
7979
}
8080
te = found
8181
}

0 commit comments

Comments
 (0)