mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-11 00:25:12 +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 <[email protected]>
This commit is contained in:
co-authored by
Elio Bischof
parent
093dd57a78
commit
25ef3da9d5
@@ -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