Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: James Pond <[email protected]>
  • Loading branch information
jamesponddotco committed Apr 9, 2024
1 parent 1244017 commit acd83b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions random.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Random struct {
}

// Generate generates a random password.
func (r *Random) Generate() string {
func (r *Random) Generate() string { //nolint:unparam // appears to be a false positive
if r.random == nil {
var seed [32]byte

Expand Down Expand Up @@ -81,7 +81,7 @@ func (r *Random) Generate() string {

// Charset returns the character set to use for generating the password.
func (r *Random) charset() []string {
if r.characters == nil {
if r.characters == nil { //nolint:nestif // what other way is there?
charset := make([]string, 0, len(_charsetLower)+len(_charsetUpper)+len(_charsetNumbers)+len(_charsetSymbols))

if r.UseLower {
Expand Down

0 comments on commit acd83b8

Please sign in to comment.