Skip to content

Commit ec85da3

Browse files
committed
Fix returning wrong err
Signed-off-by: Timo Sand <[email protected]>
1 parent 935246a commit ec85da3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linters:
1919
- misspell
2020
- modernize
2121
- nilerr
22+
- nilnesserr
2223
- predeclared
2324
- staticcheck
2425
- unconvert

github/resource_github_team_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func resourceGithubTeamRepositoryRead(d *schema.ResourceData, meta any) error {
138138
return nil
139139
}
140140
}
141-
return err
141+
return repoErr
142142
}
143143

144144
if err = d.Set("etag", resp.Header.Get("ETag")); err != nil {

0 commit comments

Comments
 (0)