Skip to content

Commit

Permalink
_is_question logic check is moved outside
Browse files Browse the repository at this point in the history
  • Loading branch information
abbi031892 committed Mar 15, 2016
1 parent 7510cd5 commit 094161a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion howdoi/howdoi.py
Expand Up @@ -100,7 +100,6 @@ def _get_links(query):


def get_link_at_pos(links, position):
links = [link for link in links if _is_question(link)]
if not links:
return False

Expand Down Expand Up @@ -138,6 +137,7 @@ def _format_output(code, args):


def _get_answer(args, links):
links = [link for link in links if _is_question(link)]
link = get_link_at_pos(links, args['pos'])
if not link:
return False
Expand Down

0 comments on commit 094161a

Please sign in to comment.