Remove unnecessary guard around delete (#7496)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot] 2021-03-17 22:23:36 +01:00 committed by GitHub
parent 3ac858b150
commit 6c573a5762
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,9 +315,7 @@ func (r *indexSenderRegistry) addLocked(folder config.FolderConfiguration, fset
r.sup.RemoveAndWait(is.token, 0) r.sup.RemoveAndWait(is.token, 0)
delete(r.indexSenders, folder.ID) delete(r.indexSenders, folder.ID)
} }
if _, ok := r.startInfos[folder.ID]; ok {
delete(r.startInfos, folder.ID) delete(r.startInfos, folder.ID)
}
is := &indexSender{ is := &indexSender{
conn: r.conn, conn: r.conn,