mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 08:39:03 +01:00
extractor: Fix success shadowing
This commit is contained in:
parent
eb5c783f2c
commit
3a0cea8f37
@ -257,7 +257,8 @@ func resolveTool(defaultPath string, envPath string, usrPath string) (path strin
|
|||||||
|
|
||||||
func handleExecutable(ea ExtractionArgs) (success bool) {
|
func handleExecutable(ea ExtractionArgs) (success bool) {
|
||||||
// get the list of bitcode paths
|
// get the list of bitcode paths
|
||||||
artifactPaths, success := ea.Extractor(ea.InputFile)
|
var artifactPaths []string
|
||||||
|
artifactPaths, success = ea.Extractor(ea.InputFile)
|
||||||
if !success {
|
if !success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -307,7 +308,8 @@ 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, success := ea.Extractor(obj)
|
var artifacts []string
|
||||||
|
artifacts, success = ea.Extractor(obj)
|
||||||
if !success {
|
if !success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -462,8 +464,8 @@ func handleArchive(ea ExtractionArgs) (success bool) {
|
|||||||
for i := 1; i <= instance; i++ {
|
for i := 1; i <= instance; i++ {
|
||||||
|
|
||||||
if obj != "" && extractFile(ea, inputFile, obj, i) {
|
if obj != "" && extractFile(ea, inputFile, obj, i) {
|
||||||
|
var artifacts []string
|
||||||
artifacts, success := ea.Extractor(obj)
|
artifacts, success = ea.Extractor(obj)
|
||||||
if !success {
|
if !success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user