Skip to content

Commit 88dbcd1

Browse files
Fix compilation errors in linting improvements
- Remove duplicate emptyString constant declaration - Fix variable assignment in Linux posture checker - Ensure builds pass with linting improvements intact Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-5be4213f-26eb-400c-bb7b-d4c79b7ee6fe
1 parent 446993b commit 88dbcd1

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

agent/internal/posture/linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (c *LinuxCollector) checkSystemUpdated() bool {
176176
}
177177

178178
// Try yum/dnf for Red Hat systems
179-
output, err := runCommand("yum", "check-update")
179+
output, err = runCommand("yum", "check-update")
180180
if err != nil {
181181
// Exit code 0 means no updates, 100 means updates available
182182
return true

pkg/secrets/secrets.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import (
77
"strings"
88
)
99

10-
const (
11-
emptyString = ""
12-
)
13-
1410
// Manager defines the interface for secret management
1511
type Manager interface {
1612
GetSecret(ctx context.Context, key string) (string, error)

0 commit comments

Comments
 (0)