Skip to content

Commit 8d9fa81

Browse files
authored
Apply suggestions from code review
1 parent 60f6efe commit 8d9fa81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_programming/current_stock_price.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ def stock_price(symbol: str = "AAPL") -> str:
2626
soup = BeautifulSoup(yahoo_finance_source, "html.parser")
2727

2828
if specific_fin_streamer_tag := soup.find("span", {"data-testid": "qsp-price"}):
29-
text = specific_fin_streamer_tag.get_text()
30-
return text
29+
return specific_fin_streamer_tag.get_text()
3130
return "No <fin-streamer> tag with the specified data-testid attribute found."
3231

3332

0 commit comments

Comments
 (0)