From d0a182d328c2ca96a505dcafe29f197526d897a4 Mon Sep 17 00:00:00 2001 From: Julie Qiu Date: Tue, 1 Sep 2020 22:40:52 -0400 Subject: internal: remove Unit.Package Unit.Pacakge is removed, since it isn't need for anything. For golang/go#39629 Change-Id: Ic620603550874de8a0b4c37c67a88bee65ec7933 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/252323 Reviewed-by: Jonathan Amsterdam --- internal/postgres/unit_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/postgres/unit_test.go') diff --git a/internal/postgres/unit_test.go b/internal/postgres/unit_test.go index 855be001..fa87fd93 100644 --- a/internal/postgres/unit_test.go +++ b/internal/postgres/unit_test.go @@ -335,7 +335,7 @@ func TestGetUnit(t *testing.T) { Filepath: sample.ReadmeFilePath, Contents: sample.ReadmeContents, } - if test.want.Package != nil { + if test.want.Name != "" { test.want.Imports = sample.Imports } test.want.SourceInfo = pathInfo.SourceInfo @@ -442,7 +442,6 @@ func unit(path, modulePath, version string, readme *internal.Readme, pkg *intern }, LicenseContents: sample.Licenses, Readme: readme, - Package: pkg, } if pkg != nil { u.Documentation = sample.Documentation -- cgit v1.3