Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Aug 2, 2024
1 parent 3c3d3d9 commit cc601d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/api/connections_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ func TestServer_CreateConnection(t *testing.T) {
var userDoc map[string]interface{}
userDocBytes, err := json.Marshal(userDidDoc)
require.NoError(t, err)
json.Unmarshal(userDocBytes, &userDoc)
err = json.Unmarshal(userDocBytes, &userDoc)
require.NoError(t, err)

issuerDidDoc := verifiable.DIDDocument{
Context: []string{serviceContext},
Expand All @@ -62,7 +63,7 @@ func TestServer_CreateConnection(t *testing.T) {
var issuerDoc map[string]interface{}
issuerDocBytes, err := json.Marshal(issuerDidDoc)
require.NoError(t, err)
json.Unmarshal(issuerDocBytes, &issuerDoc)
err = json.Unmarshal(issuerDocBytes, &issuerDoc)
require.NoError(t, err)

wrongDidDoc := make(map[string]interface{})
Expand Down

0 comments on commit cc601d1

Please sign in to comment.