Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Dec 13, 2024
1 parent 59965a4 commit 78d659a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/crowdsec-cli/idgen/machineid.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func GenerateMachineID(prefix string) (string, error) {
}

prefix = strings.ReplaceAll(prefix, "-", "")[:32]

suffix, err := GeneratePassword(16)
if err != nil {
return "", err
Expand Down
2 changes: 1 addition & 1 deletion cmd/crowdsec-cli/idgen/password.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package idgen

import (
"fmt"
saferand "crypto/rand"
"fmt"
"math/big"
)

Expand Down
1 change: 1 addition & 0 deletions pkg/leakybucket/overflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func eventSources(evt types.Event, leaky *Leaky) (map[string]models.Source, erro
leaky.logger.Tracef("Valid range from %s : %s", src.IP, src.Range)
}
}

if leaky.scopeType.Scope == types.Ip {
src.Value = &src.IP
} else if leaky.scopeType.Scope == types.Range {
Expand Down

0 comments on commit 78d659a

Please sign in to comment.