mirror of
				https://github.com/restic/restic.git
				synced 2025-11-04 03:56:52 +00:00 
			
		
		
		
	Fix typos reported by misspell
This commit is contained in:
		@@ -513,7 +513,7 @@ func TestBackupErrors(t *testing.T) {
 | 
			
		||||
	gopts := env.gopts
 | 
			
		||||
	gopts.stderr = ioutil.Discard
 | 
			
		||||
	err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"testdata"}, opts, gopts)
 | 
			
		||||
	rtest.Assert(t, err != nil, "Assumed failure, but no error occured.")
 | 
			
		||||
	rtest.Assert(t, err != nil, "Assumed failure, but no error occurred.")
 | 
			
		||||
	rtest.Assert(t, err == ErrInvalidSourceData, "Wrong error returned")
 | 
			
		||||
	snapshotIDs := testRunList(t, "snapshots", env.gopts)
 | 
			
		||||
	rtest.Assert(t, len(snapshotIDs) == 1,
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@
 | 
			
		||||
//
 | 
			
		||||
// Implementation does not guarantee order in which blobs are written to the
 | 
			
		||||
// target files and, for example, the last blob of a file can be written to the
 | 
			
		||||
// file before any of the preceeding file blobs. It is therefore possible to
 | 
			
		||||
// file before any of the preceding file blobs. It is therefore possible to
 | 
			
		||||
// have gaps in the data written to the target files if restore fails or
 | 
			
		||||
// interrupted by the user.
 | 
			
		||||
package restorer
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user