mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
Fix linting
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
d8c7bcf354
commit
3be6b92880
|
|
@ -292,7 +292,7 @@ func getProfile(
|
||||||
if domain != cfg.Matrix.ServerName {
|
if domain != cfg.Matrix.ServerName {
|
||||||
profile, fedErr := federation.LookupProfile(ctx, domain, userID, "")
|
profile, fedErr := federation.LookupProfile(ctx, domain, userID, "")
|
||||||
if fedErr != nil {
|
if fedErr != nil {
|
||||||
if x, ok := err.(gomatrix.HTTPError); ok {
|
if x, ok := fedErr.(gomatrix.HTTPError); ok {
|
||||||
if x.Code == http.StatusNotFound {
|
if x.Code == http.StatusNotFound {
|
||||||
return nil, common.ErrProfileNoExists
|
return nil, common.ErrProfileNoExists
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue