Index: Do not skip related files if the main file has no changes

This commit is contained in:
Michael Mayer 2022-04-18 17:05:14 +02:00
parent f093b498fa
commit b75b4a89a0

View file

@ -28,12 +28,6 @@ func IndexRelated(related RelatedFiles, ind *Index, o IndexOptions) (result Inde
} else if !result.Success() {
// Skip related files if indexing was not completely successful.
return result
} else if !result.Indexed() {
// Skip related files if main file was not indexed but for example skipped.
if related.Len() > 1 {
log.Warnf("index: %s has %s", related.MainLogName(), english.Plural(related.Count(), "related file", "related files"))
}
return result
} else if result.Stacked() && related.Len() > 1 {
// Show info if main file was stacked and has additional related files.
log.Infof("index: %s has %s", related.MainLogName(), english.Plural(related.Count(), "related file", "related files"))