fix: dont use pointers with interfaces
This commit is contained in:
parent
0a6738be5d
commit
26a51a25d5
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue