inverted if for better readability

This commit is contained in:
Philipp Häfelfinger 2019-02-26 00:00:21 +01:00
parent 2195920b38
commit 50e6979b00

View File

@ -32,11 +32,11 @@ func findMissingCategories(fileSystem map[string]*localFileStructure.FilesystemN
_, exists := existingCategories[file.Key]
if !exists {
if exists {
logrus.Debugf("Found existing category %s", file.Key)
} else {
logrus.Infof("Missing category detected %s", file.Key)
missingCategories = append(missingCategories, file.Key)
} else {
logrus.Debugf("Found existing category %s", file.Key)
}
}