File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ func init() {
2323}
2424
2525var (
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.
2729 ErrNoGoFiles = errors .New ("package contains no go source files" )
2830)
2931
Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ func mainCmd(args []string) int {
121121
122122 result , err := checkPaths (& checker , paths ... )
123123 if err != nil {
124- if err == errcheck .ErrNoGoFiles {
125- fmt .Fprintln (os .Stderr , err )
126- return exitCodeOk
127- }
128124 fmt .Fprintf (os .Stderr , "error: failed to check packages: %s\n " , err )
129125 return exitFatalError
130126 }
You can’t perform that action at this time.
0 commit comments