diff --git a/cmd/config/restore.go b/cmd/config/restore.go index f12729a1..29c50a3d 100644 --- a/cmd/config/restore.go +++ b/cmd/config/restore.go @@ -214,7 +214,7 @@ func runRestoreCmd(cmd *cobra.Command, args []string) error { // execute the command slog.Info("executing perfspect config", slog.String("command", executable), slog.String("args", strings.Join(cmdArgs, " "))) - execCmd := exec.Command(executable, cmdArgs...) + execCmd := exec.Command(executable, cmdArgs...) // nosemgrep execCmd.Stdin = os.Stdin // capture stdout and stderr (don't display in real-time to avoid interfering with spinner) diff --git a/cmd/config/set.go b/cmd/config/set.go index b9f0aa4e..e060fc98 100644 --- a/cmd/config/set.go +++ b/cmd/config/set.go @@ -401,9 +401,6 @@ func setSSEFrequencies(sseFrequencies string, myTarget target.Target, localTempD } else { archMultiplier = 1 } - if archMultiplier == 0 { - return fmt.Errorf("unsupported microarchitecture for SSE frequency setting: %s", uarch) - } adjustedBucketSizes := make([]int, len(bucketSizes)) for i, size := range bucketSizes { adjustedBucketSizes[i] = size * archMultiplier diff --git a/internal/script/script.go b/internal/script/script.go index d280086e..a3767c15 100644 --- a/internal/script/script.go +++ b/internal/script/script.go @@ -13,7 +13,7 @@ import ( "path" "strconv" "strings" - "text/template" + "text/template" // nosemgrep "perfspect/internal/progress" "perfspect/internal/target"