mikeysan / retweet_anything

A collection of scripts that use the tweepy API to interact with Twitter
MIT License
0 stars 6 forks source link

(PTC-W0048) `if` statements can be merged #10

Closed mikeysan closed 3 years ago

mikeysan commented 3 years ago

Description

Nested if statements can be collapsed into a single if statement by separating their condition using and operator. Merging collapsible if statements increases the code's readability. ### Not preferred: python if condition1: if condition2: dosomething() ### Preferred: python if condition1 and condition2: dosomething() ### Exception: DeepSource would not …

Occurrences

There are 6 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/mikeysan/retweet_anything/issue/PTC-W0048/occurrences/

divyanshu887 commented 3 years ago

@mikeysan i have send the PR(#11 ) for this issue please review it