From 1c7449b2352b59295655d46ed24f28eef7e4f7ca Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Wed, 20 Jan 2021 14:36:33 +0700 Subject: [PATCH] feat(config): safe to delete unusedApps directly --- config.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config.go b/config.go index f4472aa..39115ee 100644 --- a/config.go +++ b/config.go @@ -111,9 +111,7 @@ func (c *Config) Clean() error { // removed used apps for name := range c.Apps { - if _, ok := unusedDirs[name]; ok { - delete(unusedDirs, name) - } + delete(unusedDirs, name) } for dir := range unusedDirs {