mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 14:50:53 -08:00
feat(cache): wrap kv cache (fanal#62)
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -17,8 +16,7 @@ func CacheDir() string {
|
||||
if err != nil {
|
||||
cacheDir = os.TempDir()
|
||||
}
|
||||
dir := filepath.Join(cacheDir, "fanal")
|
||||
return dir
|
||||
return cacheDir
|
||||
}
|
||||
|
||||
func StringInSlice(a string, list []string) bool {
|
||||
|
||||
Reference in New Issue
Block a user