Removed the cloning of the final data in the attachment processor (#114)

* removed the cloning of the final data in the attachment processor

* fix linter
This commit is contained in:
marinthiercelin 2021-02-19 14:54:31 +01:00 committed by GitHub
parent 681ceb0546
commit cea3d0da4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 3 deletions

View file

@ -130,7 +130,7 @@ func (keyRing *KeyRing) GetKeyIDs() []uint64 {
// parts of these KeyRings.
func FilterExpiredKeys(contactKeys []*KeyRing) (filteredKeys []*KeyRing, err error) {
now := time.Now()
hasExpiredEntity := false
hasExpiredEntity := false //nolint:ifshort
filteredKeys = make([]*KeyRing, 0)
for _, contactKeyRing := range contactKeys {