Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
osamingo committed May 4, 2022
1 parent e1d5de2 commit a1b9d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ issues:
linters:
- funlen
- forbidigo
- varnamelen
6 changes: 3 additions & 3 deletions indigo.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ func New(enc Encoder, options ...func(*sonyflake.Settings)) *Generator {
enc = base58.MustNewEncoder(base58.StandardSource)
}

s := sonyflake.Settings{}
var settings sonyflake.Settings

for i := range options {
options[i](&s)
options[i](&settings)
}

return &Generator{
sf: sonyflake.NewSonyflake(s),
sf: sonyflake.NewSonyflake(settings),
enc: enc,
}
}
Expand Down

0 comments on commit a1b9d98

Please sign in to comment.