From f7541f1bc2c0a6af53243c74da66a058ea67ba09 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sat, 30 May 2015 17:41:15 -0400 Subject: [PATCH] Issue #252 --- sa/type-converter.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sa/type-converter.go b/sa/type-converter.go index 05e7e9df8..090bd7202 100644 --- a/sa/type-converter.go +++ b/sa/type-converter.go @@ -26,14 +26,6 @@ func (tc BoulderTypeConverter) ToDb(val interface{}) (interface{}, error) { } return string(jsonBytes), nil case jose.JsonWebKey: - // HACK: Some of our storage methods, like NewAuthorization, expect to - // write to the DB with the default, empty key, so we treat it specially, - // serializing to an empty string. TODO: Modify authorizations to refer - // to a registration id, and make sure registration ids are always filled. - // https://github.com/letsencrypt/boulder/issues/181 - if t.Key == nil { - return "", nil - } jsonBytes, err := t.MarshalJSON() if err != nil { return "", err