mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 23:45:55 +08:00
fix: use replaceall
This commit is contained in:
parent
6e25b2a195
commit
fa965af248
@ -103,7 +103,7 @@ func (od *GettableOrgDomain) GetSAMLIdpURL() string {
|
|||||||
func (od *GettableOrgDomain) GetSAMLCert() string {
|
func (od *GettableOrgDomain) GetSAMLCert() string {
|
||||||
if od.SamlConfig != nil {
|
if od.SamlConfig != nil {
|
||||||
// remove any whitespaces from the cert
|
// remove any whitespaces from the cert
|
||||||
cert := strings.TrimSpace(od.SamlConfig.SamlCert)
|
cert := strings.ReplaceAll(od.SamlConfig.SamlCert, " ", "")
|
||||||
return cert
|
return cert
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user