chore: fix formatting

This commit is contained in:
2025-01-30 10:10:42 +03:00
parent 4463a32ae7
commit d201aae6e0
19 changed files with 253 additions and 147 deletions

View File

@ -201,34 +201,33 @@ func (rs *Repos) processRepoChanges(ctx context.Context, repo types.Repo, r *git
continue
}
if to == nil {
switch {
case to == nil:
actions = append(actions, action{
Type: actionDelete,
File: from.Path(),
})
} else if from == nil {
case from == nil:
actions = append(actions, action{
Type: actionUpdate,
File: to.Path(),
})
} else {
if from.Path() != to.Path() {
actions = append(actions,
action{
Type: actionDelete,
File: from.Path(),
},
action{
Type: actionUpdate,
File: to.Path(),
},
)
} else {
actions = append(actions, action{
case from.Path() != to.Path():
actions = append(actions,
action{
Type: actionDelete,
File: from.Path(),
},
action{
Type: actionUpdate,
File: to.Path(),
})
}
},
)
default:
actions = append(actions, action{
Type: actionUpdate,
File: to.Path(),
})
}
}