Code generalization: request db info from other source: remove unneccessary types
This commit is contained in:
committed by
=Michael Hohn
parent
77ce997fbb
commit
52aafd6fc9
@@ -184,13 +184,7 @@ func RunAnalysisJob(
|
||||
return result, fmt.Errorf("failed to extract query pack: %w", err)
|
||||
}
|
||||
|
||||
// Download the CodeQL database as a byte slice
|
||||
location, err := dbs.GetDatabaseLocationByNWO(job.Spec.NameWithOwner)
|
||||
if err != nil {
|
||||
return result, fmt.Errorf("failed to get database location: %w", err)
|
||||
}
|
||||
|
||||
databaseData, err := dbs.GetDatabase(location)
|
||||
databaseData, err := dbs.GetDatabase(job.Spec.NameWithOwner)
|
||||
if err != nil {
|
||||
return result, fmt.Errorf("failed to get database: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user