fix: dont use pointers with interfaces

This commit is contained in:
Derrick Hammer 2024-01-07 03:56:05 -05:00
parent 0a6738be5d
commit 26a51a25d5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 4 deletions

View File

@ -65,14 +65,12 @@ func (s *StorageLocationImpl) ProviderMessage() []byte {
return s.providerMessage return s.providerMessage
} }
func NewStorageLocation(Type int, Parts []string, Expiry int64) *interfaces.StorageLocation { func NewStorageLocation(Type int, Parts []string, Expiry int64) interfaces.StorageLocation {
sl := &StorageLocationImpl{ return &StorageLocationImpl{
kind: Type, kind: Type,
parts: Parts, parts: Parts,
expiry: Expiry, expiry: Expiry,
} }
var location interfaces.StorageLocation = sl
return &location
} }
func (s *StorageLocationImpl) BytesURL() string { func (s *StorageLocationImpl) BytesURL() string {