mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
remove unnecessary check
This commit is contained in:
parent
31c37efce2
commit
d860919b22
1 changed files with 3 additions and 3 deletions
|
|
@ -1478,11 +1478,11 @@ class CreateContext:
|
||||||
output = {
|
output = {
|
||||||
folder_path: None
|
folder_path: None
|
||||||
for folder_path in folder_paths
|
for folder_path in folder_paths
|
||||||
if folder_path is not None
|
|
||||||
}
|
}
|
||||||
remainder_paths = set()
|
remainder_paths = set()
|
||||||
for folder_path in output:
|
for folder_path in output:
|
||||||
# Skip empty/invalid folder paths
|
# Skip invalid folder paths (e.g. if only folder name
|
||||||
|
# is passed in)
|
||||||
if "/" not in folder_path:
|
if "/" not in folder_path:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
@ -1505,7 +1505,7 @@ class CreateContext:
|
||||||
output[folder_path] = folder_entity
|
output[folder_path] = folder_entity
|
||||||
self._folder_entities_by_path[folder_path] = folder_entity
|
self._folder_entities_by_path[folder_path] = folder_entity
|
||||||
|
|
||||||
# Cache empty folders
|
# Cache empty folder entities
|
||||||
for path in remainder_paths - found_paths:
|
for path in remainder_paths - found_paths:
|
||||||
self._folder_entities_by_path[path] = None
|
self._folder_entities_by_path[path] = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue