From 7ef38cb4ccbd9544fc8b9749054054e6adaec72a Mon Sep 17 00:00:00 2001 From: scmmishra Date: Thu, 7 Mar 2019 16:55:21 +0530 Subject: [PATCH] style: removed comments --- frappe/core/doctype/comment/comment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/core/doctype/comment/comment.py b/frappe/core/doctype/comment/comment.py index cd36a6cffb..248f3c0d8f 100644 --- a/frappe/core/doctype/comment/comment.py +++ b/frappe/core/doctype/comment/comment.py @@ -25,8 +25,8 @@ class Comment(Document): def validate(self): if not self.comment_email: self.comment_email = frappe.session.user - if self.content: # self.content may be None, for deleted comments - self.content = frappe.utils.sanitize_html(unescape(self.content)) # sanitize any html for js events + if self.content: + self.content = frappe.utils.sanitize_html(unescape(self.content)) def on_update(self): update_comment_in_doc(self)