Replace else with continue

This commit is contained in:
Elscrux 2024-04-10 13:59:39 +02:00
parent a84f7a5a7f
commit e14e85a266
1 changed files with 4 additions and 3 deletions

View File

@ -364,10 +364,11 @@ func convertTrelloDataToVikunja(organizationName string, trelloData []*trello.Bo
task.Attachments = append(task.Attachments, vikunjaAttachment)
log.Debugf("[Trello Migration] Downloaded card attachment %s", attachment.ID)
} else {
// Other links are not attachments in Vikunja, but we can add them to the description
task.Description = "<p><a href=\"" + attachment.URL + "\">" + attachment.URL + "</a></p>\n" + task.Description
continue
}
// Other links are not attachments in Vikunja, but we can add them to the description
task.Description = "<p><a href=\"" + attachment.URL + "\">" + attachment.URL + "</a></p>\n" + task.Description
}
// When the cover image was set manually, we need to add it as an attachment