lib/db: Fix ineffassign lint issue

This commit is contained in:
Jakob Borg
2016-11-24 12:08:44 +01:00
parent 2898552f4b
commit 3cde608eda
2 changed files with 4 additions and 1 deletions

View File

@@ -128,7 +128,7 @@ func (t readWriteTransaction) updateGlobal(folder, device []byte, file protocol.
Version: file.Version,
}
insertedAt := -1
var insertedAt int
// Find a position in the list to insert this file. The file at the front
// of the list is the newer, the "global".
for i := range fl.Versions {