diff --git a/credential/builder.go b/credential/builder.go index 50592d92..7ffa7b20 100644 --- a/credential/builder.go +++ b/credential/builder.go @@ -62,7 +62,6 @@ func NewVerifiableCredentialBuilder(idValue IDValue) VerifiableCredentialBuilder }, } return vcb - } // Build attempts to turn a builder into a valid verifiable credential, doing some object model validation. diff --git a/credential/builder_test.go b/credential/builder_test.go index a6ca7549..6a73627d 100644 --- a/credential/builder_test.go +++ b/credential/builder_test.go @@ -71,9 +71,8 @@ func TestCredential(t *testing.T) { assert.EqualValues(t, knownCred, *credential) } -// Exercise all builder methods +// TestCredentialBuilder Exercises all builder methods func TestCredentialBuilder(t *testing.T) { - builder := NewVerifiableCredentialBuilder(EmptyIDValue) assert.Empty(t, builder.ID) @@ -100,7 +99,7 @@ func TestCredentialBuilder(t *testing.T) { err = builder.AddContext("https://www.w3.org/2018/credentials/examples/v1") assert.NoError(t, err) - //default id is not empty + // default id is not empty assert.NotEmpty(t, builder.ID) // set id