Skip to content

Commit

Permalink
Run goimports
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Dec 21, 2024
1 parent 9a3d4b0 commit aa44dfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions clientapi/routing/key_crosssigning.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ package routing

import (
"context"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/sirupsen/logrus"
"net/http"
"time"

"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/sirupsen/logrus"

"github.com/element-hq/dendrite/clientapi/auth"
"github.com/element-hq/dendrite/clientapi/auth/authtypes"
"github.com/element-hq/dendrite/clientapi/httputil"
Expand Down Expand Up @@ -132,7 +133,7 @@ func UploadCrossSigningDeviceKeys(
}
}

func keysDiffer(existingMasterKey fclient.CrossSigningKey, keyResp api.QueryKeysResponse, uploadReq *crossSigningRequest, userID string, ) bool {
func keysDiffer(existingMasterKey fclient.CrossSigningKey, keyResp api.QueryKeysResponse, uploadReq *crossSigningRequest, userID string) bool {
masterKeyEqual := existingMasterKey.Equal(&uploadReq.MasterKey)
if !masterKeyEqual {
return true
Expand Down
9 changes: 5 additions & 4 deletions clientapi/routing/key_crosssigning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ import (
"context"
"encoding/json"
"fmt"
"net/http"
"net/http/httptest"
"strings"
"testing"

"github.com/element-hq/dendrite/setup/config"
"github.com/element-hq/dendrite/test"
"github.com/element-hq/dendrite/test/testrig"
"github.com/element-hq/dendrite/userapi/api"
"github.com/matrix-org/gomatrixserverlib"
"github.com/matrix-org/gomatrixserverlib/fclient"
"github.com/matrix-org/gomatrixserverlib/spec"
"net/http"
"net/http/httptest"
"strings"
"testing"
)

type mockKeyAPI struct {
Expand Down

0 comments on commit aa44dfc

Please sign in to comment.