mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-11 11:40:18 +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 {
|
func isNotExistMkDir(src string) error {
|
||||||
notExist := checkNotExist(src)
|
if checkNotExist(src) {
|
||||||
if notExist {
|
|
||||||
return mkDir(src)
|
return mkDir(src)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user