File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1038,13 +1038,11 @@ def __add__(self, other: DocDetails | int) -> DocDetails: # noqa: PLR0912
1038
1038
)
1039
1039
else :
1040
1040
merged_data [field ] = max (self_value , other_value )
1041
- elif field == "content_hash" and ( # noqa: PLR0916
1042
- # Hashes are both present but differ
1043
- (self_value and other_value and self_value != other_value )
1044
- # One hash is explicitly disabled (not autopopulated)
1045
- or (self_value is None or other_value is None )
1041
+ elif field == "content_hash" and (
1042
+ self_value and other_value and self_value != other_value
1046
1043
):
1047
- # We don't know which to pick, so just discard the value
1044
+ # If hashes are both present but differ,
1045
+ # we don't know which to pick, so just discard the value
1048
1046
merged_data [field ] = None
1049
1047
1050
1048
else :
You can’t perform that action at this time.
0 commit comments