maxfire2008 / iview-rss

Unnecessary else / elif used after return PYL-R1705
Style
Major
a year agoa year old
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
123        include_extras = False
124    watchlist_resp = requests.get(
125        "https://api.seesaw.abc.net.au/v1/saved/watchlist/show?source=iview&slug=watchlist&raw=1&done=0&UID="+uid)
126    if watchlist_resp.status_code == 200:127        watchlist = json.loads(watchlist_resp.content.decode())
128        fg = FeedGenerator()
129        fg.id('https://iview-rss.maxstuff.net/watchlist/'+uid)
Unnecessary "else" after "return", remove the "else" and de-indent the code inside it
 60        fg.language('en')
 61        fg.author({'name': 'Max', 'uri': 'https://maxstuff.net'})
 62        fg.description(show_info['description'])
 63        if show_info['type'] == 'series': 64            for series in show_info['_embedded']['seriesList']:
 65                current_series = json.loads(
 66                    requests.get(