Chore: remove the entity kind registry (#79178)

This commit is contained in:
Ryan McKinley
2023-12-06 14:00:53 -08:00
committed by GitHub
parent 2a2a132c61
commit 9849c954a3
21 changed files with 8 additions and 928 deletions

View File

@@ -9,8 +9,8 @@ import (
"strings"
"github.com/grafana/grafana/pkg/infra/filestorage"
"github.com/grafana/grafana/pkg/services/store/kind/svg"
"github.com/grafana/grafana/pkg/services/user"
"github.com/grafana/grafana/pkg/util"
)
var (
@@ -52,7 +52,7 @@ func fail(reason string) validationResult {
func (s *standardStorageService) detectMimeType(ctx context.Context, user *user.SignedInUser, uploadRequest *UploadRequest) string {
if strings.HasSuffix(uploadRequest.Path, ".svg") {
if svg.IsSVG(uploadRequest.Contents) {
if util.IsSVG(uploadRequest.Contents) {
return "image/svg+xml"
}
}