diff --git a/personalities/ct-static-api/storage.go b/personalities/ct-static-api/storage.go index c2294180a..306eb1bf6 100644 --- a/personalities/ct-static-api/storage.go +++ b/personalities/ct-static-api/storage.go @@ -36,8 +36,10 @@ type CTStorage struct { // NewCTStorage instantiates a CTStorage object. func NewCTSTorage(logStorage tessera.Storage) (*CTStorage, error) { - ctStorage := new(CTStorage) - ctStorage.storeData = tessera.NewCertificateTransparencySequencedWriter(logStorage) + ctStorage := &CTStorage{ + + storeData: tessera.NewCertificateTransparencySequencedWriter(logStorage), + } return ctStorage, nil }