From 664ef416968ca8bc699cf240615bbce4bd366f49 Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Mon, 15 Nov 2021 09:18:34 -0500 Subject: internal/licenses: remove Metadata.OldCoverage We don't need the OldCoverage field anymore. All DBs have only the new Coverage information. Change-Id: Ib2d8e0cdacdc2f7b6514a8a5310d6905be15136c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/363954 Trust: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam TryBot-Result: kokoro Reviewed-by: Jamal Carvalho --- internal/testing/sample/sample.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/testing/sample/sample.go') diff --git a/internal/testing/sample/sample.go b/internal/testing/sample/sample.go index 72d5c128..c2fcf9dd 100644 --- a/internal/testing/sample/sample.go +++ b/internal/testing/sample/sample.go @@ -20,7 +20,6 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/google/licensecheck" - oldlicensecheck "github.com/google/licensecheck/old" "golang.org/x/pkgsite/internal" "golang.org/x/pkgsite/internal/godoc" "golang.org/x/pkgsite/internal/licenses" @@ -391,9 +390,9 @@ func LicenseMetadata() []*licenses.Metadata { { Types: []string{LicenseType}, FilePath: LicenseFilePath, - OldCoverage: oldlicensecheck.Coverage{ + Coverage: licensecheck.Coverage{ Percent: 100, - Match: []oldlicensecheck.Match{{Name: LicenseType, Type: oldlicensecheck.MIT, Percent: 100}}, + Match: []licensecheck.Match{{ID: "MIT", Type: 0}}, }, }, } -- cgit v1.3