mirror of
https://github.com/syncthing/syncthing.git
synced 2026-10-23 19:48:24 -04:00
lib/model: Remove superfluous check for IndexID in remote ClusterConfig (#5717)
The check in ClusterConfig() when iterating through announced devices in a folder explicitly skips entries without a non-zero IndexID. Therefore, the check for IndexID == 0 just below will never be true and the intended cleanup of local index data will not happen. Plainly remove that check to make the intended case distinction work.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f