all: Fix typos found by codespell (#8833)

This commit is contained in:
Dimitri Papadopoulos Orfanos
2023-03-21 08:07:28 +01:00
committed by GitHub
parent bc371eacf6
commit 526e21ae26
14 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -761,7 +761,7 @@ func (f *folder) scanSubdirsDeletedAndIgnored(subDirs []string, batch *scanBatch
fallthrough
case !file.IsIgnored() && !file.IsDeleted() && !file.IsUnsupported():
// The file is not ignored, deleted or unsupported. Lets check if
// it's still here. Simply stat:ing it wont do as there are
// it's still here. Simply stat:ing it won't do as there are
// tons of corner cases (e.g. parent dir->symlink, missing
// permissions)
if !osutil.IsDeleted(f.mtimefs, file.Name) {
+1 -1
View File
@@ -1906,7 +1906,7 @@ func (m *model) Request(deviceID protocol.DeviceID, folder, name string, _, size
if err == nil && scanner.Validate(res.data, hash, weakHash) {
return res, nil
}
// Fall through to reading from a non-temp file, just incase the temp
// Fall through to reading from a non-temp file, just in case the temp
// file has finished downloading.
}
+1 -1
View File
@@ -3957,7 +3957,7 @@ func TestIssue6961(t *testing.T) {
must(t, tfs.Remove(name))
m.ScanFolders()
// Drop ther remote index, add some other file.
// Drop the remote index, add some other file.
must(t, m.Index(device2, fcfg.ID, []protocol.FileInfo{{Name: "bar", RawInvalid: true, Sequence: 1}}))
// Pause and unpause folder to create new db.FileSet and thus recalculate everything
+1 -1
View File
@@ -751,7 +751,7 @@ func TestRequestRemoteRenameChanged(t *testing.T) {
t.Error("Got more than one index update for", f.Name)
}
if f.Version.Counter(fc.id.Short()) == 0 {
// This index entry might be superseeded
// This index entry might be superseded
// by the final one or sent before it separately.
break
}