aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/unit.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/postgres/unit.go')
-rw-r--r--internal/postgres/unit.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/postgres/unit.go b/internal/postgres/unit.go
index 2e16b7af..268c606b 100644
--- a/internal/postgres/unit.go
+++ b/internal/postgres/unit.go
@@ -122,14 +122,6 @@ func (db *DB) GetUnit(ctx context.Context, um *internal.UnitMeta, fields interna
}
u.LicenseContents = lics
}
- if fields == internal.AllFields {
- if u.Name != "" {
- u.Package = &internal.Package{
- Path: u.Path,
- Name: u.Name,
- }
- }
- }
if !db.bypassLicenseCheck {
u.RemoveNonRedistributableData()
}