From 26a51a25d5a6325e4a14e51ad3643c326134c4aa Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 7 Jan 2024 03:56:05 -0500 Subject: [PATCH] fix: dont use pointers with interfaces --- node/storage.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/node/storage.go b/node/storage.go index 461ab1f..562f689 100644 --- a/node/storage.go +++ b/node/storage.go @@ -65,14 +65,12 @@ func (s *StorageLocationImpl) ProviderMessage() []byte { return s.providerMessage } -func NewStorageLocation(Type int, Parts []string, Expiry int64) *interfaces.StorageLocation { - sl := &StorageLocationImpl{ +func NewStorageLocation(Type int, Parts []string, Expiry int64) interfaces.StorageLocation { + return &StorageLocationImpl{ kind: Type, parts: Parts, expiry: Expiry, } - var location interfaces.StorageLocation = sl - return &location } func (s *StorageLocationImpl) BytesURL() string {