From 90df0ba35ee77a3e2d918dbce7bc441b34c60ac3 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Fri, 6 May 2022 00:57:29 +0200 Subject: [PATCH] GetMetadata: ignore linter check --- api/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/types.go b/api/types.go index 5149ef91..960134cb 100644 --- a/api/types.go +++ b/api/types.go @@ -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 {