Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update modules/avatar/avatar.go
Co-authored-by: a1012112796 <[email protected]>
  • Loading branch information
silverwind and a1012112796 authored May 9, 2021
commit 0b3070b20d1e6f42a07955954b30475dd6f7925b
2 changes: 1 addition & 1 deletion modules/avatar/avatar.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func RandomImageSize(size int, data []byte) (image.Image, error) {
randExtent := len(palette.WebSafe) - 32
integer, err := util.RandomInt(int64(randExtent))
if err != nil {
return nil, fmt.Errorf("identicon.New: %v", err)
return nil, fmt.Errorf("util.RandomInt: %v", err)
}
colorIndex := int(integer)
backColorIndex := colorIndex - 1
Expand Down