Skip to content

Commit 664bfb4

Browse files
author
Tjaz Erzen
committed
Remove propagating file as an argument
1 parent ad4d722 commit 664bfb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plain2code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def setup_logging(
166166
root_logger.info(f"Render ID: {render_id}") # Ensure render ID is logged in to codeplain.log file
167167

168168

169-
def _check_connection(codeplainAPI):
169+
def _check_connection(codeplainAPI: codeplain_api.CodeplainAPI):
170170
"""Check API connectivity and validate API key and client version."""
171171
response = codeplainAPI.connection_check(system_config.client_version)
172172

@@ -185,7 +185,7 @@ def _check_connection(codeplainAPI):
185185
)
186186

187187

188-
def render(args, run_state: RunState, codeplain_api, event_bus: EventBus): # noqa: C901
188+
def render(args, run_state: RunState, event_bus: EventBus): # noqa: C901
189189
# Check system requirements before proceeding
190190
system_config.verify_requirements()
191191

@@ -262,7 +262,7 @@ def main(): # noqa: C901
262262
)
263263

264264
console.debug(f"Render ID: {run_state.render_id}") # Ensure render ID is logged to the console
265-
render(args, run_state, codeplain_api, event_bus)
265+
render(args, run_state, event_bus)
266266
except InvalidFridArgument as e:
267267
exc_info = sys.exc_info()
268268
console.error(f"Invalid FRID argument: {str(e)}.\n")

0 commit comments

Comments
 (0)