aboutsummaryrefslogtreecommitdiff
path: root/spdxlib/documents.go
diff options
context:
space:
mode:
Diffstat (limited to 'spdxlib/documents.go')
-rw-r--r--spdxlib/documents.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/spdxlib/documents.go b/spdxlib/documents.go
index bd689e7..1f7122a 100644
--- a/spdxlib/documents.go
+++ b/spdxlib/documents.go
@@ -16,7 +16,7 @@ func ValidateDocument2_1(doc *spdx.Document2_1) error {
validElementIDs[docPackage.PackageSPDXIdentifier] = true
}
- for _, unpackagedFile := range doc.UnpackagedFiles {
+ for _, unpackagedFile := range doc.Files {
validElementIDs[unpackagedFile.FileSPDXIdentifier] = true
}
@@ -46,7 +46,7 @@ func ValidateDocument2_2(doc *spdx.Document2_2) error {
validElementIDs[docPackage.PackageSPDXIdentifier] = true
}
- for _, unpackagedFile := range doc.UnpackagedFiles {
+ for _, unpackagedFile := range doc.Files {
validElementIDs[unpackagedFile.FileSPDXIdentifier] = true
}