Skip to content

Commit 8befaf2

Browse files
committed
chore: minor lint fix
1 parent 09f3ea2 commit 8befaf2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/node/api.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,10 @@ def texts(self):
9494
if os.path.exists(_components_json_path):
9595
try:
9696
with open(_components_json_path) as f:
97-
9897
node_data = json.load(f)
9998
# Extract components mapping from node.json structure
10099
# node.json has structure: {"components": {"ComponentName": {"path": "...", ...}, ...}}
101-
# Paths in node.json incorrectly have format "lfx.src.lfx.components..."
100+
# Paths in node.json incorrectly have format "lfx.src.lfx.components..."
102101
# but should be "lfx.components..." (matching old components.json format)
103102
if "components" in node_data and isinstance(node_data["components"], dict):
104103
_component_map = {}
@@ -114,16 +113,16 @@ def texts(self):
114113
path = "lfx." + path[len("lfx.src.") :]
115114
if original_path != path:
116115
logger.debug(
117-
f"Transformed path for {component_name}: "
118-
f"{original_path} -> {path}"
116+
f"Transformed path for {component_name}: " f"{original_path} -> {path}"
119117
)
120118
_component_map[component_name] = path
121119
logger.info(
122120
f"Loaded {len(_component_map)} component mappings from {_components_json_path}"
123121
)
124122
else:
125123
logger.warning(
126-
f"node.json does not contain 'components' key or invalid structure at {_components_json_path}"
124+
f"node.json does not contain 'components' key or invalid structure "
125+
f"at {_components_json_path}"
127126
)
128127
except Exception as e:
129128
logger.warning(f"Failed to load node.json: {e}")

0 commit comments

Comments
 (0)