Skip to content

Commit 12a55ea

Browse files
linter fixes
1 parent 4bb75b5 commit 12a55ea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cmd/src/scout_advise.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func init() {
4545
namespace = flagSet.String("namespace", "", "(optional) specify the kubernetes namespace to use")
4646
pod = flagSet.String("pod", "", "(optional) specify a single pod")
4747
container = flagSet.String("container", "", "(optional) specify a single container")
48-
output = flagSet.String("o", "", "(optional) output advice to file")
48+
output = flagSet.String("o", "", "(optional) output advice to file")
4949
docker = flagSet.Bool("docker", false, "(optional) using docker deployment")
5050
)
5151

@@ -87,9 +87,9 @@ func init() {
8787
if *pod != "" {
8888
options = append(options, advise.WithPod(*pod))
8989
}
90-
if *output != "" {
91-
options = append(options, advise.WithOutput(*output))
92-
}
90+
if *output != "" {
91+
options = append(options, advise.WithOutput(*output))
92+
}
9393
if *container != "" || *docker {
9494
if *container != "" {
9595
options = append(options, advise.WithContainer(*container))

internal/scout/advise/k8s.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ func K8s(
6767
}
6868

6969
// Advise generates resource allocation advice for a Kubernetes pod.
70-
// The function fetches usage metrics for each container in the pod. It then
71-
// checks the usage percentages against thresholds to determine if more or less
72-
// of a resource is needed. Advice is generated and either printed to the console
70+
// The function fetches usage metrics for each container in the pod. It then
71+
// checks the usage percentages against thresholds to determine if more or less
72+
// of a resource is needed. Advice is generated and either printed to the console
7373
// or output to a file depending on the cfg.Output field.
7474
func Advise(ctx context.Context, cfg *scout.Config, pod v1.Pod) error {
7575
var advice []string

0 commit comments

Comments
 (0)