Skip to content

Commit

Permalink
Merge pull request #15 from jasondborneman/tester/wildcardLintingFixes
Browse files Browse the repository at this point in the history
Linting Fixes
  • Loading branch information
jasondborneman authored Jan 12, 2024
2 parents a4fc896 + 72da705 commit e467d26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/weather/services/tester/run_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ func matchTestFilter(ctx context.Context, test string, testMap map[string]func(c
g, err := glob.Compile(test)
if err != nil {
_ = logError(ctx, err)
err = errors.New(fmt.Sprintf("wildcard glob [%s] did not compile: %v", test, err))
err = fmt.Errorf("wildcard glob [%s] did not compile: %v", test, err)
return testMatches, err
}
i := 0
for testName, _ := range testMap {
for testName := range testMap {
match = g.Match(testName)
if match {
testMatches = append(testMatches, testMap[testName])
Expand Down Expand Up @@ -143,7 +143,7 @@ func (svc *Service) runTests(ctx context.Context, p *gentester.TesterPayload, te
g, err := glob.Compile(excludeTest)
if err != nil {
_ = logError(ctx, err)
err = errors.New(fmt.Sprintf("wildcard glob [%s] did not compile: %v", excludeTest, err))
err = fmt.Errorf("wildcard glob [%s] did not compile: %v", excludeTest, err)
return nil, gentester.MakeWildcardCompileError(err)
}
wildcardMatch = wildcardMatch || g.Match(testName)
Expand Down

0 comments on commit e467d26

Please sign in to comment.