Skip to content

Commit

Permalink
wac: comment out unused variable
Browse files Browse the repository at this point in the history
Not removing it as I did not write this code.

Fixes the following flake8 error:

F841 local variable 'text_score' is assigned to but never used
  • Loading branch information
stintel committed Jan 17, 2024
1 parent b246a65 commit 2e68f81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/internal/wac.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@ def wac_search(

try:
id = json_get(wac_search_result, "/hits[0]/document/id")
text_score = json_get(wac_search_result, "/hits[0]/text_match")
# unused
# text_score = json_get(wac_search_result, "/hits[0]/text_match")
tokens_matched = json_get(
wac_search_result, "/hits[0]/text_match_info/tokens_matched")
wac_command = json_get(
Expand Down

0 comments on commit 2e68f81

Please sign in to comment.