aleph-im / aleph-client

Lightweight Python Client library for the Aleph.im network
MIT License
11 stars 12 forks source link

refactor: remove unused variable #220

Closed Psycojoker closed 3 weeks ago

github-actions[bot] commented 3 weeks ago

This is a simple change in the _show_compute function in node.py, which involves removing the node_reward variable from the node_info dictionary. This change is unlikely to introduce bugs, as it only affects the display of node information and does not modify the actual node data or the application's logic. The change is straightforward and does not involve any complex refactoring or new features. Therefore, the review complexity is categorized as 'BLUE'.

-        node_reward = node["stream_reward"]
+

The removal of this line simplifies the code by reducing the number of variables in the function, making it easier to understand and maintain. The change also aligns with the principle of removing unused variables to improve code readability.