extractor: Fix other assigns

This commit is contained in:
William Woodruff 2020-08-03 16:55:38 -04:00
parent 6ca36df5db
commit eb5c783f2c
No known key found for this signature in database
GPG Key ID: 70F70A3979DDCED3

View File

@ -307,7 +307,10 @@ func handleThinArchive(ea ExtractionArgs) (success bool) {
for index, obj := range objectFiles { for index, obj := range objectFiles {
LogInfo("obj = '%v'\n", obj) LogInfo("obj = '%v'\n", obj)
if len(obj) > 0 { if len(obj) > 0 {
artifacts := ea.Extractor(obj) artifacts, success := ea.Extractor(obj)
if !success {
return
}
LogInfo("\t%v\n", artifacts) LogInfo("\t%v\n", artifacts)
artifactFiles = append(artifactFiles, artifacts...) artifactFiles = append(artifactFiles, artifacts...)
for _, bc := range artifacts { for _, bc := range artifacts {
@ -460,7 +463,10 @@ func handleArchive(ea ExtractionArgs) (success bool) {
if obj != "" && extractFile(ea, inputFile, obj, i) { if obj != "" && extractFile(ea, inputFile, obj, i) {
artifacts := ea.Extractor(obj) artifacts, success := ea.Extractor(obj)
if !success {
return
}
LogInfo("\t%v\n", artifacts) LogInfo("\t%v\n", artifacts)
artifactFiles = append(artifactFiles, artifacts...) artifactFiles = append(artifactFiles, artifacts...)
for _, bc := range artifacts { for _, bc := range artifacts {