mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Tiny style fix to separate functions by 2 newlines
This commit is contained in:
parent
d64bed26f3
commit
f5d6d1e752
1 changed files with 2 additions and 0 deletions
|
@ -6,9 +6,11 @@ from os.path import join
|
|||
def is_none_or_empty(item):
|
||||
return item == None or (hasattr(item, '__iter__') and len(item) == 0)
|
||||
|
||||
|
||||
def to_snake_case_from_dash(item: str):
|
||||
return item.replace('_', '-')
|
||||
|
||||
|
||||
def get_absolute_path(filepath):
|
||||
return str(pathlib.Path(filepath).expanduser().absolute())
|
||||
|
||||
|
|
Loading…
Reference in a new issue