fix(all): various typos (#10242)

This commit is contained in:
Ross Smith II
2025-08-12 20:05:10 +02:00
committed by GitHub
parent fcf4916086
commit bbf48ae334
23 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
// deviceFolderFileDownloadState holds current download state of a file that
// a remote device has advertised. blockIndexes represends indexes within
// a remote device has advertised. blockIndexes represents indexes within
// FileInfo.Blocks that the remote device already has, and version represents
// the version of the file that the remote device is downloading.
type deviceFolderFileDownloadState struct {
+1 -1
View File
@@ -66,7 +66,7 @@ func TestDeviceDownloadState(t *testing.T) {
[]protocol.FileDownloadProgressUpdate{f1v1p1, f1v1p2, f1v2p2},
},
{ // 7
// v2 replacees v1, v2 gets deleted, and v2 part 2 gets added.
// v2 replaces v1, v2 gets deleted, and v2 part 2 gets added.
[]protocol.FileDownloadProgressUpdate{f1v1p1, f1v1p2, f1v2p1, f1v2del, f1v2p2},
[]protocol.FileDownloadProgressUpdate{f1v2p2},
[]protocol.FileDownloadProgressUpdate{f1v1p1, f1v1p2, f1v2p1},
+1 -1
View File
@@ -951,7 +951,7 @@ func (f *folder) scanTimerFired() error {
if err != nil {
f.sl.Error("Failed initial scan", slogutil.Error(err))
} else {
f.sl.Info("Competed initial scan")
f.sl.Info("Completed initial scan")
}
close(f.initialScanFinished)
}
+2 -2
View File
@@ -1541,7 +1541,7 @@ func (m *model) ccCheckEncryption(fcfg config.FolderConfiguration, folderDevice
}
if isEncryptedRemote && isEncryptedLocal {
// Should never happen, but config racyness and be safe.
// Should never happen, but config raciness and be safe.
return errEncryptionInvConfigLocal
}
@@ -3105,7 +3105,7 @@ func (m *model) CommitConfiguration(from, to config.Configuration) bool {
// Some options don't require restart as those components handle it fine
// by themselves. Compare the options structs containing only the
// attributes that require restart and act apprioriately.
// attributes that require restart and act appropriately.
if !reflect.DeepEqual(from.Options.RequiresRestartOnly(), to.Options.RequiresRestartOnly()) {
l.Debugln(m, "requires restart, options differ")
return false
+1 -1
View File
@@ -745,7 +745,7 @@ func TestRequestRemoteRenameChanged(t *testing.T) {
}
case strings.HasPrefix(path, b+".sync-conflict-"):
if err := equalContents(tfs, path, otherData); err != nil {
t.Error(`Sync conflict of "b" has unexptected content`)
t.Error(`Sync conflict of "b" has unexpected content`)
}
case path == "." || strings.HasPrefix(path, ".stfolder"):
default: