crossing out objects with no source
This commit is contained in:
@@ -52,8 +52,13 @@ func printResults(musicObjects []data.MusicObject) {
|
||||
}
|
||||
}
|
||||
|
||||
for _, source := range m.GetSources() {
|
||||
results[i] += "\n\t- " + source.Url
|
||||
sources := m.GetSources()
|
||||
if len(sources) > 0 {
|
||||
for _, source := range sources {
|
||||
results[i] += "\n\t- " + source.Url
|
||||
}
|
||||
} else {
|
||||
results[i] = color.StrikeThrough + results[i] + color.Reset
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user