mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: fix some small issues detected by golangci-lint
But not using it as some linters are either plain incorrect (the one suggesting to not use nil for `c.t.Context()`) or just debatable (checking for err value is a good practice, but there are good reasons to opt out in some cases).
This commit is contained in:
@@ -14,16 +14,12 @@ import (
|
||||
"io/fs"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"regexp"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
var (
|
||||
//go:embed data/avatars
|
||||
avatarParts embed.FS
|
||||
avatarRegexp = regexp.MustCompile(`^([a-z]+)_([0-9]+)\.png$`)
|
||||
)
|
||||
//go:embed data/avatars
|
||||
var avatarParts embed.FS
|
||||
|
||||
// UserInfoHandlerFunc returns the information about the currently logged user.
|
||||
func (c *Component) UserInfoHandlerFunc(gc *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user