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>
This commit is contained in:
gavin 2021-05-08 12:39:27 +05:30 committed by GitHub
parent 926d13e69e
commit c84feb16e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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