mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-27 20:36:29 -04:00
Initialize deletions list when returning lists from RunJob()
This commit is contained in:
@@ -550,6 +550,7 @@ func RunJob(returnLists bool) ([3][]string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return [3][]string{nil, nil, nil}, errors.New("unable to sync entries: " + err.Error())
|
return [3][]string{nil, nil, nil}, errors.New("unable to sync entries: " + err.Error())
|
||||||
}
|
}
|
||||||
|
lists[0] = []string{} // initialize deletions list
|
||||||
for _, deletion := range deletions {
|
for _, deletion := range deletions {
|
||||||
if !deletion.IsAgeFile {
|
if !deletion.IsAgeFile {
|
||||||
lists[0] = append(lists[0], deletion.VanityPath)
|
lists[0] = append(lists[0], deletion.VanityPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user