From 50e6979b004413417f645960c2dd2171e545281e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Tue, 26 Feb 2019 00:00:21 +0100 Subject: [PATCH] inverted if for better readability --- internal/app/category.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/app/category.go b/internal/app/category.go index d5d0e4e..ecfcbd5 100644 --- a/internal/app/category.go +++ b/internal/app/category.go @@ -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) } }