all: Fix typos found by codespell (#8833)
This commit is contained in:
@@ -1368,7 +1368,7 @@ func startWrapper(wrapper Wrapper) *testWrapper {
|
||||
}
|
||||
|
||||
func TestInternalVersioningConfiguration(t *testing.T) {
|
||||
// Verify that the versioning configuration XML seralizes to something
|
||||
// Verify that the versioning configuration XML serializes to something
|
||||
// reasonable.
|
||||
|
||||
cfg := New(device1)
|
||||
|
||||
@@ -328,8 +328,8 @@ func (w *wrapper) notifyListeners(from, to Configuration) Waiter {
|
||||
wg := sync.NewWaitGroup()
|
||||
wg.Add(len(w.subs))
|
||||
for _, sub := range w.subs {
|
||||
go func(commiter Committer) {
|
||||
w.notifyListener(commiter, from, to)
|
||||
go func(committer Committer) {
|
||||
w.notifyListener(committer, from, to)
|
||||
wg.Done()
|
||||
}(sub)
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ func listXattr(path string) ([]string, error) {
|
||||
if errors.Is(err, unix.ERANGE) || size == len(buf) {
|
||||
// Buffer is too small. Try again with a zero sized buffer to
|
||||
// get the size, then allocate a buffer of the correct size. We
|
||||
// inlude the size == len(buf) because apparently macOS doesn't
|
||||
// include the size == len(buf) because apparently macOS doesn't
|
||||
// return ERANGE as it should -- no harm done, just an extra
|
||||
// read if we happened to need precisely 1024 bytes on the first
|
||||
// pass.
|
||||
|
||||
+1
-1
@@ -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
@@ -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.
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user