nasa/fprime-tools

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

ThibFrgsGmz opened this issue · 1 comments

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

Hi, can I take this issue?