diff --git a/ffi/main.go b/ffi/main.go index 24d3f1047..22fe48f85 100644 --- a/ffi/main.go +++ b/ffi/main.go @@ -4,7 +4,6 @@ import "C" import ( "fmt" - "context" "encoding/json" "gopkg.in/yaml.v2" diff --git a/pkg/analyze/download.go b/pkg/analyze/download.go index df1e24655..1ad2a2b5e 100644 --- a/pkg/analyze/download.go +++ b/pkg/analyze/download.go @@ -20,7 +20,7 @@ type fileContentProvider struct { rootDir string } -func DownloadAndAnalyze(analyzersSpec string, bundleURL string) ([]*AnalyzeResult, error) { +func DownloadAndAnalyze(bundleURL string, analyzersSpec string) ([]*AnalyzeResult, error) { tmpDir, err := ioutil.TempDir("", "troubleshoot-k8s") if err != nil { return nil, errors.Wrap(err, "failed to create temp dir")