diff --git a/DrissionPage/easy_set.py b/DrissionPage/easy_set.py
index eee2ffe..593789e 100644
--- a/DrissionPage/easy_set.py
+++ b/DrissionPage/easy_set.py
@@ -53,10 +53,7 @@ def set_paths(driver_path: str = None,
     om = OptionsManager(ini_path)
 
     def format_path(path: str) -> str:
-        if not path:
-            return ''
-
-        return str(path).replace('/', '\\')
+        return '' if not path else str(path).replace('/', '\\')
 
     if driver_path is not None:
         om.set_item('paths', 'chromedriver_path', format_path(driver_path))