From 3be6b9288000794ac1e92dae9f80287f61f0e4c2 Mon Sep 17 00:00:00 2001 From: Cnly Date: Tue, 6 Aug 2019 14:53:56 +0800 Subject: [PATCH] Fix linting Signed-off-by: Alex Chen --- clientapi/routing/profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientapi/routing/profile.go b/clientapi/routing/profile.go index 993c217cb..5ea436f66 100644 --- a/clientapi/routing/profile.go +++ b/clientapi/routing/profile.go @@ -292,7 +292,7 @@ func getProfile( if domain != cfg.Matrix.ServerName { profile, fedErr := federation.LookupProfile(ctx, domain, userID, "") if fedErr != nil { - if x, ok := err.(gomatrix.HTTPError); ok { + if x, ok := fedErr.(gomatrix.HTTPError); ok { if x.Code == http.StatusNotFound { return nil, common.ErrProfileNoExists }