Skip to content

Commit

Permalink
remove redundant sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Nov 30, 2023
1 parent 6821954 commit ac15503
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bbot/core/event/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,12 +722,6 @@ def sanitize_data(self, data):


class DictEvent(BaseEvent):
def sanitize_data(self, data):
url = data.get("url", "")
if url:
self.parsed = validators.validate_url_parsed(url)
return data

def _data_human(self):
return json.dumps(self.data, sort_keys=True)

Expand Down

0 comments on commit ac15503

Please sign in to comment.