From b55a8a15939db11030b111fbe27000d2b3137879 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Sat, 10 Aug 2024 16:14:06 +0900 Subject: [PATCH] (fix) lint --- main.go | 4 ++-- pkg/system.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index fd1542b..657b327 100644 --- a/main.go +++ b/main.go @@ -123,7 +123,7 @@ func sendHealthCheck() { }) } - var logDetails []interface{} + var logDetails []interface{} // nolint: prealloc for _, detail := range details { logDetails = append(logDetails, detail.Label, detail.Message) } @@ -190,7 +190,7 @@ func notify(result *pkg.ScanResult) { slog.Info("Sending to MS Teams") details := pkg.GetAlertDetails(&f, result) - var logDetails []interface{} + var logDetails []interface{} // nolint: prealloc for _, detail := range details { logDetails = append(logDetails, detail.Label, detail.Message) } diff --git a/pkg/system.go b/pkg/system.go index 7b629b0..36d75bd 100644 --- a/pkg/system.go +++ b/pkg/system.go @@ -50,7 +50,7 @@ func ExecShell(command string) (string, error) { func sendPanicCheck(f *Flags, m *runtime.MemStats) { details := GetPanicDetails(f, m) - var logDetails []interface{} + var logDetails []interface{} // nolint: prealloc for _, detail := range details { logDetails = append(logDetails, detail.Label, detail.Message) }