From c219a53fa81b176b5762f681d28d6e4d33a0848d Mon Sep 17 00:00:00 2001 From: zhengtianyi Date: Mon, 24 Oct 2022 13:44:00 +0800 Subject: [PATCH] refactor: fine-tune the coding of lib/logger/ Limited ability, hope to make it better~ --- lib/logger/files.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/logger/files.go b/lib/logger/files.go index 450f6db..1f7a456 100644 --- a/lib/logger/files.go +++ b/lib/logger/files.go @@ -16,8 +16,7 @@ func checkPermission(src string) bool { } func isNotExistMkDir(src string) error { - notExist := checkNotExist(src) - if notExist { + if checkNotExist(src) { return mkDir(src) } return nil