Skip to content

Commit

Permalink
Fix yarn flow
Browse files Browse the repository at this point in the history
  • Loading branch information
khaister committed Mar 31, 2024
1 parent 5311c99 commit 514c183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/keyboardNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ function followComments(newWindow = false, selected = getSelected()) {
if (!matches) navigateTo(a.href, { newWindow });

// check for subreddit specific values
const subreddit = matches[1].toLowerCase();
const subreddit = matches && matches[1].toLowerCase();
const [, commentDepth, minimumComments] = (
CommentDepth.module.options.subredditCommentDepths.value.find(([subreddits]) => subreddits.toLowerCase().split(',').includes(subreddit)) ||
[null, CommentDepth.module.options.defaultCommentDepth.value, CommentDepth.module.options.defaultMinimumComments.value]
Expand Down

0 comments on commit 514c183

Please sign in to comment.