Separate queue and agent logic and refactor

This commit is contained in:
Nicolas Will
2024-06-15 23:12:11 +02:00
parent e107f6cf80
commit 7ea45cb176
5 changed files with 328 additions and 357 deletions

View File

@@ -16,7 +16,6 @@ import (
"gopkg.in/yaml.v3"
)
// Helper Functions
func contains(slice []string, item string) bool {
for _, s := range slice {
if s == item {
@@ -26,7 +25,6 @@ func contains(slice []string, item string) bool {
return false
}
// Main Functions
func getCodeQLCLIPath() (string, error) {
// get the CODEQL_CLI_PATH environment variable
codeqlCliPath := os.Getenv("CODEQL_CLI_PATH")