mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Tiny style fix to separate functions by 2 newlines
This commit is contained in:
@@ -6,9 +6,11 @@ from os.path import join
|
|||||||
def is_none_or_empty(item):
|
def is_none_or_empty(item):
|
||||||
return item == None or (hasattr(item, '__iter__') and len(item) == 0)
|
return item == None or (hasattr(item, '__iter__') and len(item) == 0)
|
||||||
|
|
||||||
|
|
||||||
def to_snake_case_from_dash(item: str):
|
def to_snake_case_from_dash(item: str):
|
||||||
return item.replace('_', '-')
|
return item.replace('_', '-')
|
||||||
|
|
||||||
|
|
||||||
def get_absolute_path(filepath):
|
def get_absolute_path(filepath):
|
||||||
return str(pathlib.Path(filepath).expanduser().absolute())
|
return str(pathlib.Path(filepath).expanduser().absolute())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user