Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ae74f2

Browse files
committed
avoiding annoying "payload 'None' possibly..." in case where payload is not specified
1 parent 941daa1 commit 0ae74f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/utils/checkpayload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def checkPayload(payload):
3333
PHPIDS filter rules
3434
"""
3535

36+
if not payload:
37+
return
38+
3639
global rules
3740

3841
detected = False

0 commit comments

Comments
 (0)