mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-11 19:50:13 +08:00
refactor: fine-tune the coding of lib/logger/
Limited ability, hope to make it better~
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user