Skip to content

Commit

Permalink
remove empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Nov 24, 2023
1 parent 129d448 commit 42e8fc4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/ix-dev/community/searxng/migrations/migrate
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,20 @@ def migrate(values):
storage_key = 'searxngStorage'
storages = ['config']


for storage in storages:
check_val = values.get(storage_key, {}).get(storage, {})
if not isinstance(check_val, dict) or not check_val:
continue

values[storage_key][storage] = storage_migrate(check_val)


additionalStorages = values.get(storage_key, {}).get('additionalStorages', [])
for idx, storage in enumerate(additionalStorages):
if not isinstance(storage, dict) or not storage:
continue

values[storage_key]['additionalStorages'][idx] = storage_migrate(storage)


return values


Expand Down

0 comments on commit 42e8fc4

Please sign in to comment.