Skip to content

Commit

Permalink
Tame gocyclo linter
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Tsarev <[email protected]>
  • Loading branch information
ytsarev committed Jan 18, 2024
1 parent 220ac54 commit 17b6df3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type preparer struct {
testDirectory string
}

//nolint:gocyclo // This function is not complex, gocyclo threshold was reached due to the error handling.
func (p *preparer) prepareManifests() ([]config.Manifest, error) {
caseDirectory := filepath.Join(p.testDirectory, caseDirectory)
if err := os.RemoveAll(caseDirectory); err != nil {
Expand Down

0 comments on commit 17b6df3

Please sign in to comment.