@@ -285,7 +285,7 @@ func (s *sourceStore) UpdateIdentifiers(getNewID func(v Value) (string, any)) {
285285 // - 3. Finally, synchronously remove it from the disk store.
286286 s .store .UpdateTTL (res , 0 )
287287 delete (s .store .ephemeralStore .table , res .key )
288- s .store .persistentStore .Remove (res .key )
288+ _ = s .store .persistentStore .Remove (res .key )
289289 s .store .log .Infof ("migrated entry in registry from '%s' to '%s'. Cursor: %v" , key , newKey , r .cursor )
290290 }
291291
@@ -341,7 +341,7 @@ func (s *sourceStore) TakeOver(fn func(Value) (string, any)) {
341341 // a Filestream input
342342 fromLogInput := map [string ]logInputState {}
343343 if len (s .identifiersToTakeOver ) == 0 {
344- s .store .persistentStore .Each (func (key string , value statestore.ValueDecoder ) (bool , error ) {
344+ _ = s .store .persistentStore .Each (func (key string , value statestore.ValueDecoder ) (bool , error ) {
345345 if strings .HasPrefix (key , "filebeat::logs::" ) {
346346 m := mapstr.M {}
347347 if err := value .Decode (& m ); err != nil {
@@ -450,7 +450,7 @@ func (s *sourceStore) TakeOver(fn func(Value) (string, any)) {
450450 // - 3. Finally, synchronously remove it from the disk store.
451451 s .store .UpdateTTL (res , 0 )
452452 delete (s .store .ephemeralStore .table , res .key )
453- s .store .persistentStore .Remove (res .key )
453+ _ = s .store .persistentStore .Remove (res .key )
454454 s .store .log .Infof ("migrated entry in registry from '%s' to '%s'. Cursor: %v" , k , newKey , r .cursor )
455455 }
456456
@@ -484,7 +484,7 @@ func (s *sourceStore) TakeOver(fn func(Value) (string, any)) {
484484 // it read when Filebeat was starting, thus "overriding" this delete.
485485 // We keep it here because when we remove the Log input we will ensure
486486 // the entry is actually remove from the disk store.
487- s .store .persistentStore .Remove (k )
487+ _ = s .store .persistentStore .Remove (k )
488488 res .Release ()
489489 s .store .log .Infof ("migrated entry in registry from '%s' to '%s'. Cursor: %v" , k , newKey , res .cursor )
490490 }
@@ -507,7 +507,7 @@ func logInputStateFromMapM(m mapstr.M) (logInputState, error) {
507507
508508 // typeconf.Convert kept failing with an "unsupported" error because
509509 // FileStateOS was present, we don't need it, so just delete it.
510- m .Delete ("FileStateOS" ) //nolint:errcheck // The key is always there
510+ m .Delete ("FileStateOS" )
511511 if err := typeconv .Convert (& state , m ); err != nil {
512512 return logInputState {}, fmt .Errorf ("cannot convert Log input state: %w" , err )
513513 }
0 commit comments