lostb053/anibot

Fix 43 Maintainability issues in multiple files

lostb053 opened this issue · 0 comments

CodeFactor found multiple issues last seen at 50ad687:

Comparison 'in_list != None' should be 'in_list is not None'

Comparison 'auth == True' should be 'auth is True' if checking for the singleton value True, or 'auth' if testing for truthiness

Comparison 'english == None' should be 'english is None'

Comparison 'isfav == True' should be 'isfav is True' if checking for the singleton value True, or 'isfav' if testing for truthiness

Comparison 'episodes != None' should be 'episodes is not None'

Comparison 'air_on == None' should be 'air_on is None'

Comparison 'duration != None' should be 'duration is not None'

Comparison 'text != None' should be 'text is not None'

Comparison 'result[0] == False' should be 'result[0] is False' if checking for the singleton value False, or 'not result[0]' if testing for falsiness

Comparison 'req != None' should be 'req is not None'

Comparison 'spoiler == False' should be 'spoiler is False' if checking for the singleton value False, or 'not spoiler' if testing for falsiness

Comparison 'find_gc != None' should be 'find_gc is not None'

Comparison 'find_gc == None' should be 'find_gc is None'

Comparison 'enable == False' should be 'enable is False' if checking for the singleton value False, or 'not enable' if testing for falsiness

Comparison 'await A.find_one() == None' should be 'await A.find_one() is None'