mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:17:32 +00:00
refactor(fmt): run gci on complete project (#7557)
chore(fmt): run gci on complete project Fix global import formatting in go code by running the `gci` command. This allows us to just use the command directly, instead of fixing the import order manually for the linter, on each PR. Co-authored-by: Elio Bischof <elio@zitadel.com>
This commit is contained in:
@@ -3,9 +3,8 @@ package middleware
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/telemetry/metrics"
|
||||
|
||||
http_utils "github.com/zitadel/zitadel/internal/api/http"
|
||||
"github.com/zitadel/zitadel/internal/telemetry/metrics"
|
||||
)
|
||||
|
||||
func DefaultMetricsHandler(handler http.Handler) http.Handler {
|
||||
|
@@ -3,9 +3,8 @@ package middleware
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/zitadel/zitadel/internal/telemetry"
|
||||
|
||||
http_utils "github.com/zitadel/zitadel/internal/api/http"
|
||||
"github.com/zitadel/zitadel/internal/telemetry"
|
||||
)
|
||||
|
||||
func DefaultTelemetryHandler(handler http.Handler) http.Handler {
|
||||
|
@@ -22,7 +22,7 @@ func IsOriginAllowed(allowList []string, origin string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
//IsOrigin checks if provided string is an origin (scheme://hostname[:port]) without path, query or fragment
|
||||
// IsOrigin checks if provided string is an origin (scheme://hostname[:port]) without path, query or fragment
|
||||
func IsOrigin(rawOrigin string) bool {
|
||||
parsedUrl, err := url.Parse(rawOrigin)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user