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 @@ -1133,13 +1133,11 @@ def __add__(self, other: DocDetails | int) -> DocDetails: # noqa: PLR0912
1133
1133
)
1134
1134
else :
1135
1135
merged_data [field ] = max (self_value , other_value )
1136
- elif field == "content_hash" and ( # noqa: PLR0916
1137
- # Hashes are both present but differ
1138
- (self_value and other_value and self_value != other_value )
1139
- # One hash is explicitly disabled (not autopopulated)
1140
- or (self_value is None or other_value is None )
1136
+ elif field == "content_hash" and (
1137
+ self_value and other_value and self_value != other_value
1141
1138
):
1142
- # We don't know which to pick, so just discard the value
1139
+ # If hashes are both present but differ,
1140
+ # we don't know which to pick, so just discard the value
1143
1141
merged_data [field ] = None
1144
1142
1145
1143
else :
You can’t perform that action at this time.
0 commit comments