internal/worker: change non-module to a recoverable error

We recently decided to turn non-modules into modules but we kept
non-module errors as unrecoverable. This meant that such projects won't
be analyzed and hence turned into modules. This CL fixes that.

Change-Id: Ic425ad4ba1f7644b49252bc769156d0ddd3f3c35
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/519755
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Maceo Thompson <maceothompson@google.com>
diff --git a/internal/worker/govulncheck_scan.go b/internal/worker/govulncheck_scan.go
index 05f315e..c22bca2 100644
--- a/internal/worker/govulncheck_scan.go
+++ b/internal/worker/govulncheck_scan.go
@@ -124,8 +124,7 @@
 // of govulncheck. Examples are build issues and the lack of go.mod file.
 func unrecoverableError(errorCategory string) bool {
 	switch errorCategory {
-	case derrors.CategorizeError(derrors.LoadPackagesNoGoModError),
-		derrors.CategorizeError(derrors.LoadPackagesError): // We model build usses as a general load error.
+	case derrors.CategorizeError(derrors.LoadPackagesError): // We model build usses as a general load error.
 		return true
 	default:
 		return false