nasa / fprime-tools

F´ Python tooling and helpers.
https://github.com/nasa/fprime
Apache License 2.0
21 stars 39 forks source link

(F841) Local variable name is assigned to but never used #130

Closed ThibFrgsGmz closed 1 year ago

ThibFrgsGmz commented 1 year ago
F´ Version devel
Affected Component string_util.py

Problem Description

Ruff linter spotted one issue in:

https://github.com/fprime-community/fprime-tools/blob/58e28dfa4a1c93e55aff533747def2b5386aa40f/src/fprime/util/string_util.py#L95

src/fprime/util/string_util.py:95:26: F841 [*] Local variable `e` is assigned to but never used

According to Flake 8: "A local variable in your function was defined but is not being used. This local variable should be removed."

Ref: https://www.flake8rules.com/rules/F841.html

Expected Behavior

The variable should be used or be removed.

PS: can be tagged as Good First Issue

stepanzubkov commented 1 year ago

Hi, can I take this issue?