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

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

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)
}