Skip to content

Commit

Permalink
(fix) lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Aug 10, 2024
1 parent f586ab9 commit b55a8a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b55a8a1

Please sign in to comment.