Skip to content

Commit

Permalink
Reduce method complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
StegSchreck committed Jan 22, 2018
1 parent 19bace4 commit 0a58ed2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RatS/base/base_ratings_inserter.py
Expand Up @@ -104,6 +104,9 @@ def _find_movie(self, movie):
time.sleep(iteration * 1)
continue

return self._is_movie_in_search_results(movie, search_results)

def _is_movie_in_search_results(self, movie, search_results):
for search_result in search_results:
if self._is_requested_movie(movie, search_result):
return True # Found
Expand Down

0 comments on commit 0a58ed2

Please sign in to comment.