chore: linter: staticcheck

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent 98cf5872e9
commit df8d8c276e
7 changed files with 33 additions and 21 deletions
+3 -2
View File
@@ -449,10 +449,11 @@ func (a *aggregator) updateConfig(folderCfg config.FolderConfiguration) {
}
func updateInProgressSet(event events.Event, inProgress map[string]struct{}) {
if event.Type == events.ItemStarted {
switch event.Type {
case events.ItemStarted:
path := event.Data.(map[string]string)["item"]
inProgress[path] = struct{}{}
} else if event.Type == events.ItemFinished {
case events.ItemFinished:
path := event.Data.(map[string]interface{})["item"].(string)
delete(inProgress, path)
}