syncthing / syncthing

append possibly assigns to a wrong variable CRT-D0001
Bug risk
Minor
1 occurrence in this check
append result not assigned to the same slice
162		t.Error("wrong number of bytes:", len(buf1))
163	}
164
165	bs1 := append(buf0, buf1...)166	if !bytes.Equal(bs0, bs1) {
167		t.Error("data mismatch")
168	}