fix: Avoid possible whitespace bug

* Handles semgrep warning
* Changed "" to None as a precaution against future whitespace bugs via human error

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
(cherry picked from commit c84feb16e9)
This commit is contained in:
gavin 2021-05-08 12:39:27 +05:30 committed by mergify-bot
parent 1eb84ad5e5
commit 86d2989c52

View file

@ -123,7 +123,7 @@ class DocType(Document):
}
for docfield in self.get("fields") or []:
conflict_type = ""
conflict_type = None
field = docfield.fieldname
field_label = docfield.label or docfield.fieldname