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 {