From d49cf56a92624b28b3a71d3889b70d75ad7e9f9b Mon Sep 17 00:00:00 2001 From: Philippe Boneff Date: Thu, 1 Aug 2024 15:41:28 +0000 Subject: [PATCH] create newctstorage more beautifuler --- personalities/ct-static-api/storage.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }