Skip to content

Commit 0fe3a21

Browse files
authored
fix(stock price checker): add missing function return (#612)
1 parent 47b6660 commit 0fe3a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/stock-price-checker/controllers/stockHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function StockHandler() {
8282
const validTickerRegExp = /^[a-z]{1,6}$/;
8383
const isValidStock = stock => {
8484
const stockL = stock.toLowerCase().trim();
85-
validTickerRegExp.test(stockL);
85+
return validTickerRegExp.test(stockL);
8686
};
8787

8888
module.exports = StockHandler;

0 commit comments

Comments
 (0)