Merge pull request #2990 from MichaelEischer/fix-goreport-warnings

Fix some goreport warnings
This commit is contained in:
Alexander Neumann authored and GitHub committed 2020-10-12 20:44:56 +02:00
commit 56883817d8
15 files changed
+103 -105

No files matched your search

+1 -1
View File
@@ -715,7 +715,7 @@ func (r *Repository) SaveBlob(ctx context.Context, t restic.BlobType, buf []byte
// first try to add to pending blobs; if not successful, this blob is already known
known = !r.idx.addPending(newID, t)
// only save when needed or explicitely told
// only save when needed or explicitly told
if !known || storeDuplicate {
err = r.SaveAndEncrypt(ctx, t, buf, newID)
}