mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
lib/db: Fix ineffassign lint issue
This commit is contained in:
parent
2898552f4b
commit
3cde608eda
@ -507,6 +507,9 @@ func TestCSRFRequired(t *testing.T) {
|
|||||||
cfg := new(mockedConfig)
|
cfg := new(mockedConfig)
|
||||||
cfg.gui.APIKey = testAPIKey
|
cfg.gui.APIKey = testAPIKey
|
||||||
baseURL, err := startHTTP(cfg)
|
baseURL, err := startHTTP(cfg)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal("Unexpected error from getting base URL:", err)
|
||||||
|
}
|
||||||
|
|
||||||
cli := &http.Client{
|
cli := &http.Client{
|
||||||
Timeout: time.Second,
|
Timeout: time.Second,
|
||||||
|
@ -128,7 +128,7 @@ func (t readWriteTransaction) updateGlobal(folder, device []byte, file protocol.
|
|||||||
Version: file.Version,
|
Version: file.Version,
|
||||||
}
|
}
|
||||||
|
|
||||||
insertedAt := -1
|
var insertedAt int
|
||||||
// Find a position in the list to insert this file. The file at the front
|
// Find a position in the list to insert this file. The file at the front
|
||||||
// of the list is the newer, the "global".
|
// of the list is the newer, the "global".
|
||||||
for i := range fl.Versions {
|
for i := range fl.Versions {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user