chore: make golangci-lint happy

This commit is contained in:
Steven
2022-08-24 21:53:12 +08:00
parent 0e4e2e4bc5
commit 7d0407013e
14 changed files with 130 additions and 35 deletions

View File

@ -47,7 +47,7 @@ func (s *Server) registerTagRoutes(g *echo.Group) {
tagMapSet := make(map[string]bool)
r, err := regexp.Compile("#(.+?) ")
r := regexp.MustCompile("#(.+?) ")
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to compile regexp").SetInternal(err)
}