-
Notifications
You must be signed in to change notification settings - Fork 11
Deadcode breaks multiline assignments #26
Copy link
Copy link
Open
Description
When deadcode detects an unused variable, it only attempts to remove the line of assignment, ignoring any further lines that are connected to the assignment.
Here, I have an assignment that takes the output of a function call that was broken into multiple lines. Deadcode only tries to remove the first line, leaving the second and the third line in place, resulting in a syntactically incorrect file.
-unused_variable = function_call(
param1, param2, param3
)
deadcode version: 2.4.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels