Skip to content

Commit

Permalink
chore: use errors.New to replace fmt.Errorf with no parameters (#7640)
Browse files Browse the repository at this point in the history
Signed-off-by: ChengenH <hce19970702@gmail.com>
  • Loading branch information
ChengenH authored Dec 9, 2024
1 parent ad621a4 commit f627b43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/build_test_matrix/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"encoding/json"
"errors"
"fmt"
"go/ast"
"go/parser"
Expand Down Expand Up @@ -139,7 +140,7 @@ func getGithubActionMatrixForTests(e2eRootDirectory, testName string, suite stri
}

if len(gh.Include) == 0 {
return GithubActionTestMatrix{}, fmt.Errorf("no test cases found")
return GithubActionTestMatrix{}, errors.New("no test cases found")
}

// Sort the test cases by name so that the order is consistent.
Expand Down

0 comments on commit f627b43

Please sign in to comment.