fix: directly assign return value (#23007)

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2023-10-30 21:37:42 +05:30 committed by GitHub
parent 9b112b3e03
commit 6418320d61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,7 +350,7 @@ class DocType(Document):
self.flags.update_fields_to_fetch_queries = []
new_fields_to_fetch = [df for df in new_meta.get_fields_to_fetch()]
new_fields_to_fetch = new_meta.get_fields_to_fetch()
if set(old_fields_to_fetch) != {df.fieldname for df in new_fields_to_fetch}:
for df in new_fields_to_fetch: