Fix variable shadowing pointed out by linter.
This commit is contained in:
parent
bb0c91683f
commit
8c9f5151b1
1 changed files with 2 additions and 4 deletions
|
@ -29,15 +29,13 @@ type CoverageRequirements struct {
|
||||||
func getCoverageRequirements(rootPackage string) *CoverageRequirements {
|
func getCoverageRequirements(rootPackage string) *CoverageRequirements {
|
||||||
files := listTestFiles(rootPackage)
|
files := listTestFiles(rootPackage)
|
||||||
|
|
||||||
r := &CoverageRequirements{}
|
|
||||||
for _, f := range files {
|
for _, f := range files {
|
||||||
r, _ := searchCoverageComment(f)
|
if r, _ := searchCoverageComment(f); r.Enabled {
|
||||||
if r.Enabled {
|
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return r
|
return &CoverageRequirements{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// searchCoverageComment searches for the first occurrence of the comment of the form
|
// searchCoverageComment searches for the first occurrence of the comment of the form
|
||||||
|
|
Loading…
Reference in a new issue