GetMetadata: ignore linter check

This commit is contained in:
Hector Sanjuan 2022-05-06 00:57:29 +02:00
parent 7a05eeeb60
commit 90df0ba35e

View File

@ -1207,6 +1207,7 @@ func (pin *Pin) ProtoUnmarshal(data []byte) error {
}
// Use whatever metadata is available.
//lint:ignore SA1019 we keed to keep backwards compat
pin.Metadata = opts.GetMetadata()
sortedMetadata := opts.GetSortedMetadata()
if len(sortedMetadata) > 0 && pin.Metadata == nil {