File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ func init() {
23
23
}
24
24
25
25
var (
26
- // ErrNoGoFiles is returned when CheckPackage is run on a package with no Go source files
26
+ // ErrNoGoFiles is returned when CheckPackage is run on a package with no Go source files.
27
+ //
28
+ // Deprecated: this error is no longer returned by errcheck.LoadPackages.
27
29
ErrNoGoFiles = errors .New ("package contains no go source files" )
28
30
)
29
31
Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ func mainCmd(args []string) int {
121
121
122
122
result , err := checkPaths (& checker , paths ... )
123
123
if err != nil {
124
- if err == errcheck .ErrNoGoFiles {
125
- fmt .Fprintln (os .Stderr , err )
126
- return exitCodeOk
127
- }
128
124
fmt .Fprintf (os .Stderr , "error: failed to check packages: %s\n " , err )
129
125
return exitFatalError
130
126
}
You can’t perform that action at this time.
0 commit comments