mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
lib/model: Clarify normal shallow copy
This commit is contained in:
parent
8b4bd43306
commit
5958f42294
@ -1115,9 +1115,10 @@ func TestPullCaseOnlyPerformFinish(t *testing.T) {
|
||||
t.Fatal("file is missing")
|
||||
}
|
||||
|
||||
remote := *(&cur)
|
||||
remote := cur
|
||||
remote.Version = protocol.Vector{}.Update(device1.Short())
|
||||
remote.Name = strings.ToUpper(cur.Name)
|
||||
|
||||
temp := fs.TempName(remote.Name)
|
||||
writeFile(t, ffs, temp, contents)
|
||||
scanChan := make(chan string, 1)
|
||||
@ -1181,7 +1182,8 @@ func testPullCaseOnlyDirOrSymlink(t *testing.T, dir bool) {
|
||||
|
||||
scanChan := make(chan string, 1)
|
||||
dbUpdateChan := make(chan dbUpdateJob, 1)
|
||||
remote := *(&cur)
|
||||
|
||||
remote := cur
|
||||
remote.Version = protocol.Vector{}.Update(device1.Short())
|
||||
remote.Name = strings.ToUpper(cur.Name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user